Fix emoji search not showing custom emoji when none are uncategorized (#11920)

Fix #11903
th-downstream
Eugen Rochko 5 years ago committed by GitHub
parent 69b44ba726
commit 25c70115c1

@ -99,4 +99,4 @@ export const buildCustomEmojis = (customEmojis) => {
return emojis;
};
export const categoriesFromEmojis = customEmojis => customEmojis.reduce((set, emoji) => set.add(emoji.get('category') ? `custom-${emoji.get('category')}` : 'custom'), new Set());
export const categoriesFromEmojis = customEmojis => customEmojis.reduce((set, emoji) => set.add(emoji.get('category') ? `custom-${emoji.get('category')}` : 'custom'), new Set(['custom']));

Loading…
Cancel
Save