Skip to content

Commit

Permalink
Make exceptEmojis optional when calling init
Browse files Browse the repository at this point in the history
  • Loading branch information
Zertz authored Jan 23, 2023
1 parent 812afa1 commit bd20ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/emoji-mart/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ async function _init(props) {
category.emojis.splice(emojiIndex, 1)
}

if (!emoji || props.exceptEmojis.includes(emoji.id)) {
if (!emoji || props.exceptEmojis?.includes(emoji.id)) {
ignore()
continue
}
Expand Down

0 comments on commit bd20ee3

Please sign in to comment.