From 3587f02f67b88f911e14a2cc2bf150be0b68211c Mon Sep 17 00:00:00 2001 From: Xeltica Date: Fri, 27 Jan 2023 13:08:34 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=A2=E3=83=BC=E3=83=88=E3=81=AE?= =?UTF-8?q?=E3=82=AB=E3=82=B9=E3=82=BF=E3=83=A0=E7=B5=B5=E6=96=87=E5=AD=97?= =?UTF-8?q?=E3=83=AA=E3=82=A2=E3=82=AF=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=8C?= =?UTF-8?q?=E8=A1=A8=E7=A4=BA=E3=81=95=E3=82=8C=E3=81=AA=E3=81=84=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/MkReactionsViewer.reaction.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/components/MkReactionsViewer.reaction.vue b/packages/frontend/src/components/MkReactionsViewer.reaction.vue index 5cb4836052..c86d4efe23 100644 --- a/packages/frontend/src/components/MkReactionsViewer.reaction.vue +++ b/packages/frontend/src/components/MkReactionsViewer.reaction.vue @@ -39,7 +39,7 @@ const reactionName = computed(() => { return r.slice(0, r.indexOf('@')); }); -const alternative: ComputedRef = computed(() => (customEmojis).find(it => it.name === reactionName.value)?.name); +const alternative: ComputedRef = computed(() => customEmojis.value.find(it => it.name === reactionName.value)?.name ?? null); const canToggle = computed(() => !props.reaction.match(/@\w/) && $i);