From 0d4a5338c8d32edd58c21cbe22114e7b407eec3e Mon Sep 17 00:00:00 2001 From: mattyatea Date: Wed, 18 Oct 2023 23:29:14 +0900 Subject: [PATCH] fix --- packages/frontend/src/components/MkEmojiPicker.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/MkEmojiPicker.vue b/packages/frontend/src/components/MkEmojiPicker.vue index 4d9bd29d37..9533463591 100644 --- a/packages/frontend/src/components/MkEmojiPicker.vue +++ b/packages/frontend/src/components/MkEmojiPicker.vue @@ -77,7 +77,7 @@ SPDX-License-Identifier: AGPL-3.0-only v-for="category in groupedData" :key="`custom:${category}`" :initialShown="false" - :emojis="computed(() => customEmojis.filter(filterAvailable))" + :emojis="computed(() => customEmojis.filter(emoji => !emoji.draft).filter(filterAvailable))" :category="category" @chosen="chosen" /> @@ -181,7 +181,7 @@ watch(q, () => { const searchCustom = () => { const max = 100; - const emojis = customEmojis.value; + const emojis = customEmojis.value.filter(emoji => !emoji.draft);; const matches = new Set(); const exactMatch = emojis.find(emoji => emoji.name === newQ);