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.
1 parent be4f7e5 commit ed760f8Copy full SHA for ed760f8
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