Skip to content

Commit bd20ee3

Browse files
authored
Make exceptEmojis optional when calling init
1 parent 812afa1 commit bd20ee3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/emoji-mart/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ async function _init(props) {
178178
category.emojis.splice(emojiIndex, 1)
179179
}
180180

181-
if (!emoji || props.exceptEmojis.includes(emoji.id)) {
181+
if (!emoji || props.exceptEmojis?.includes(emoji.id)) {
182182
ignore()
183183
continue
184184
}

0 commit comments

Comments
 (0)