summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkEmojiPicker.vue
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frontend/src/components/MkEmojiPicker.vue')
-rw-r--r--packages/frontend/src/components/MkEmojiPicker.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/frontend/src/components/MkEmojiPicker.vue b/packages/frontend/src/components/MkEmojiPicker.vue
index 4ac65a5f45..452546375c 100644
--- a/packages/frontend/src/components/MkEmojiPicker.vue
+++ b/packages/frontend/src/components/MkEmojiPicker.vue
@@ -326,7 +326,7 @@ watch(q, () => {
for (const index of Object.values(store.s.additionalUnicodeEmojiIndexes)) {
for (const emoji of emojis) {
- if (keywords.every(keyword => index[emoji.char].some(k => k.includes(keyword)))) {
+ if (keywords.every(keyword => index[emoji.char]?.some(k => k.includes(keyword)))) {
matches.add(emoji);
if (matches.size >= max) break;
}
@@ -343,7 +343,7 @@ watch(q, () => {
for (const index of Object.values(store.s.additionalUnicodeEmojiIndexes)) {
for (const emoji of emojis) {
- if (index[emoji.char].some(k => k.startsWith(newQ))) {
+ if (index[emoji.char]?.some(k => k.startsWith(newQ))) {
matches.add(emoji);
if (matches.size >= max) break;
}
@@ -360,7 +360,7 @@ watch(q, () => {
for (const index of Object.values(store.s.additionalUnicodeEmojiIndexes)) {
for (const emoji of emojis) {
- if (index[emoji.char].some(k => k.includes(newQ))) {
+ if (index[emoji.char]?.some(k => k.includes(newQ))) {
matches.add(emoji);
if (matches.size >= max) break;
}