mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 11:35:29 +01:00
Fix emoji search not showing custom emoji when none are uncategorized (#11920)
Fix #11903
This commit is contained in:
parent
8c4b5f7cef
commit
0d2b60ab8b
@ -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…
Reference in New Issue
Block a user