Fix search results when rendering emojis from object

exclude-unsupported-native-emojis
Etienne Lemay 2016-07-18 15:14:46 -04:00
parent b07e598a8a
commit ae8dfb4e60
2 changed files with 2 additions and 2 deletions

View File

@ -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}
/> />

View File

@ -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}`,