From 0f99ba192d87ec8edc4e2936f21aadd318a2080f Mon Sep 17 00:00:00 2001 From: mattyatea Date: Thu, 20 Jun 2024 14:13:05 +0900 Subject: [PATCH] fix --- .../frontend/src/components/MkReactionsViewer.reaction.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/frontend/src/components/MkReactionsViewer.reaction.vue b/packages/frontend/src/components/MkReactionsViewer.reaction.vue index 1323b896ff..ed70654649 100644 --- a/packages/frontend/src/components/MkReactionsViewer.reaction.vue +++ b/packages/frontend/src/components/MkReactionsViewer.reaction.vue @@ -66,8 +66,7 @@ const canGetInfo = computed(() => !props.reaction.match(/@\w/) && props.reaction async function toggleReaction() { if (!canToggle.value) return; - const oldReaction = props.note.myReactions.includes(props.reaction) ? props.reaction : null; - console.log(oldReaction); + const oldReaction = props.note.myReactions?.includes(props.reaction) ? props.reaction : null; if (oldReaction) { const confirm = await os.confirm({ type: 'warning',