Fix search results when rendering emojis from object
parent
b07e598a8a
commit
ae8dfb4e60
|
@ -138,7 +138,7 @@ export default class Category extends React.Component {
|
||||||
|
|
||||||
{emojis && emojis.map((emoji) =>
|
{emojis && emojis.map((emoji) =>
|
||||||
<Emoji
|
<Emoji
|
||||||
key={emoji}
|
key={emoji.short_name || emoji}
|
||||||
emoji={emoji}
|
emoji={emoji}
|
||||||
{...emojiProps}
|
{...emojiProps}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -32,7 +32,7 @@ export default class Emoji extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.hasSkinVariations && skin > 1) {
|
if (this.hasSkinVariations && skin > 1) {
|
||||||
emojiData = JSON.parse(JSON.stringify(data.emojis[emoji]))
|
emojiData = JSON.parse(JSON.stringify(emojiData))
|
||||||
|
|
||||||
var skinKey = SKINS[skin - 1],
|
var skinKey = SKINS[skin - 1],
|
||||||
variationKey = `${emojiData.unified}-${skinKey}`,
|
variationKey = `${emojiData.unified}-${skinKey}`,
|
||||||
|
|
Loading…
Reference in New Issue