Fix search results when rendering emojis from object

release
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) =>
<Emoji
key={emoji}
key={emoji.short_name || emoji}
emoji={emoji}
{...emojiProps}
/>

View File

@ -32,7 +32,7 @@ export default class Emoji extends React.Component {
}
if (this.hasSkinVariations && skin > 1) {
emojiData = JSON.parse(JSON.stringify(data.emojis[emoji]))
emojiData = JSON.parse(JSON.stringify(emojiData))
var skinKey = SKINS[skin - 1],
variationKey = `${emojiData.unified}-${skinKey}`,