diff options
Diffstat (limited to 'web_src/js/utils/match.js')
-rw-r--r-- | web_src/js/utils/match.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/utils/match.js b/web_src/js/utils/match.js index 0d20ca336f..31763b0940 100644 --- a/web_src/js/utils/match.js +++ b/web_src/js/utils/match.js @@ -3,7 +3,7 @@ import emojis from '../../../assets/emoji.json'; const maxMatches = 6; function sortAndReduce(map) { - const sortedMap = new Map([...map.entries()].sort((a, b) => a[1] - b[1])); + const sortedMap = new Map(Array.from(map.entries()).sort((a, b) => a[1] - b[1])); return Array.from(sortedMap.keys()).slice(0, maxMatches); } |