aboutsummaryrefslogtreecommitdiff
path: root/src/components/emoji_input/emoji_input.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/emoji_input/emoji_input.js')
-rw-r--r--src/components/emoji_input/emoji_input.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/emoji_input/emoji_input.js b/src/components/emoji_input/emoji_input.js
index 16243a56..d32e19bf 100644
--- a/src/components/emoji_input/emoji_input.js
+++ b/src/components/emoji_input/emoji_input.js
@@ -184,11 +184,10 @@ const EmojiInput = {
if (this.textAtCaret !== textAtCaret) return
if (matchedSuggestions.length <= 0) return
this.suggestions = take(matchedSuggestions, 5)
- .map(({ imageUrl, ...rest }, index) => ({
+ .map(({ imageUrl, ...rest }) => ({
...rest,
// eslint-disable-next-line camelcase
- img: imageUrl || '',
- highlighted: index === this.highlighted
+ img: imageUrl || ''
}))
},
suggestions (newValue) {