improve performance
This commit is contained in:
parent
2ef2be8494
commit
abd777f9ff
|
@ -221,11 +221,8 @@ watch(q, () => {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
for (const emoji of emojis) {
|
||||
if (emoji.name === newQ) {
|
||||
matches.add(emoji);
|
||||
if (matches.size >= max) break;
|
||||
}
|
||||
if (customEmojisMap.has(newQ)) {
|
||||
matches.add(customEmojisMap.get(newQ)!);
|
||||
}
|
||||
if (matches.size >= max) return matches;
|
||||
|
||||
|
|
Loading…
Reference in New Issue