Handle invalid emoji name in `Emoji` component [Fix #143]
parent
8549ebf685
commit
0d18995c3d
|
@ -60,7 +60,10 @@ const Emoji = props => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var { unified, custom, short_names, imageUrl } = _getData(props),
|
let data = _getData(props)
|
||||||
|
if (!data) { return null }
|
||||||
|
|
||||||
|
let { unified, custom, short_names, imageUrl } = data,
|
||||||
style = {},
|
style = {},
|
||||||
children = props.children,
|
children = props.children,
|
||||||
className = 'emoji-mart-emoji',
|
className = 'emoji-mart-emoji',
|
||||||
|
|
Loading…
Reference in New Issue