Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-01-05 21:26:32 +00:00
parent cf071c5ac6
commit ba2f4aa973
1 changed files with 1 additions and 3 deletions

View File

@ -48,9 +48,7 @@ class EmojiPicker extends React.Component {
}; };
// Convert recent emoji characters to emoji data, removing unknowns and duplicates // Convert recent emoji characters to emoji data, removing unknowns and duplicates
this.recentlyUsed = Array.from(new Set(recent.get() this.recentlyUsed = Array.from(new Set(recent.get().map(getEmojiFromUnicode).filter(Boolean)));
.map(unicode => getEmojiFromUnicode(unicode))
.filter(data => !!data)));
this.memoizedDataByCategory = { this.memoizedDataByCategory = {
recent: this.recentlyUsed, recent: this.recentlyUsed,
...DATA_BY_CATEGORY, ...DATA_BY_CATEGORY,