diff --git a/app/emoji/client/emojiPicker.js b/app/emoji/client/emojiPicker.js index 7894ab736efc..410bbfa5682c 100644 --- a/app/emoji/client/emojiPicker.js +++ b/app/emoji/client/emojiPicker.js @@ -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];