Skip to content
Snippets Groups Projects
Unverified Commit 0d2b60ab authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

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

Fix #11903
parent 8c4b5f7c
No related branches found
No related tags found
No related merge requests found
......@@ -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']));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment