From fe207473cd0918a4461909cafe33e73432bc1ade Mon Sep 17 00:00:00 2001 From: fly_mc Date: Fri, 6 Dec 2024 17:42:02 +0800 Subject: [PATCH] fix emojipicker --- packages/frontend/src/components/MkEmojiPicker.section.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/MkEmojiPicker.section.vue b/packages/frontend/src/components/MkEmojiPicker.section.vue index b026c0fd2..f8e7a6e26 100644 --- a/packages/frontend/src/components/MkEmojiPicker.section.vue +++ b/packages/frontend/src/components/MkEmojiPicker.section.vue @@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- + @@ -86,7 +86,7 @@ const emit = defineEmits<{ }>(); const emojis = computed(() => Array.isArray(props.emojis) ? props.emojis : props.emojis.value); -const emojiExample = computed(() => emojis.value[0] || ''); +const emojiExample = computed(() => emojis.value.at(0)); const shown = ref(!!props.initialShown);