missive / emoji-mart

🏪 One component to pick them all
https://missiveapp.com/open/emoji-mart
MIT License
8.38k stars 802 forks source link

Make `exceptEmojis` optional when calling `init` #785

Closed Zertz closed 1 year ago

Zertz commented 1 year ago
import data from "@emoji-mart/data";
import { init } from "emoji-mart";

init({ data });

Before: TypeError: undefined is not an object (evaluating 'props.exceptEmojis.includes')

After: ✅

EtienneLem commented 1 year ago

Thanks! Made it not use optional chaining, just to make 1000000% sure we avoid trouble with some older Webpack versions.