We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents be4f7e5 + ed760f8 commit 10e03f9Copy full SHA for 10e03f9
src/components/ChatAutoComplete/ChatAutoComplete.tsx
@@ -386,8 +386,8 @@ const UnMemoizedChatAutoComplete = <
386
return [];
387
}
388
const emojis = emojiIndex?.search(query) || [];
389
- const result = emojis.slice(0, 10);
390
-
+ // emojiIndex.search sometimes returns undefined values, so filter those out first
+ const result = emojis.filter(Boolean).slice(0, 10);
391
if (onReady) onReady(result, query);
392
393
return result;
0 commit comments