[FIX] Emoji picker search broken (#17570)

pull/17577/head
Guilherme Gazzo 5 years ago committed by GitHub
parent 241c205cb1
commit 615fa8c283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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];

Loading…
Cancel
Save