Skip to content

Commit

Permalink
Fix #2084 (#2089)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiuqingSong authored Sep 21, 2023
1 parent bee1d42 commit f8e3096
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ const EmojiPane = React.forwardRef(function EmojiPaneFunc(
[mode, currentFamily, currentEmojiList]
);

const getEmojiIconId = React.useCallback((emoji: Emoji) => `${listId}-${emoji.key}`, [listId]);
const getEmojiIconId = React.useCallback(
(emoji: Emoji) => (emoji ? `${listId}-${emoji.key}` : ''),
[listId]
);

React.useImperativeHandle(
ref,
Expand Down

0 comments on commit f8e3096

Please sign in to comment.