Skip to content

Commit

Permalink
[FIX] Emoji picker search broken (#17570)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored and sampaiodiego committed May 11, 2020
1 parent 4c34378 commit 456e135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/emoji/client/emojiPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function getEmojisBySearchTerm(searchTerm) {

if (searchRegExp.test(current)) {
const emojiObject = emoji.list[current];
const { emojiPackage, shortnames } = emojiObject;
const { emojiPackage, shortnames = [] } = emojiObject;
let tone = '';
current = current.replace(/:/g, '');
const alias = shortnames[0] !== undefined ? shortnames[0].replace(/:/g, '') : shortnames[0];
Expand Down

0 comments on commit 456e135

Please sign in to comment.