From fea6428245591ca710f718eaff5000194d5ed233 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 23 Dec 2023 14:47:14 +0000 Subject: [PATCH] add missing `.value` --- packages/frontend/src/components/MkNoteDetailed.vue | 4 ++-- packages/frontend/src/components/MkNoteSub.vue | 4 ++-- packages/frontend/src/components/SkNoteDetailed.vue | 4 ++-- packages/frontend/src/components/SkNoteSub.vue | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index 1ff05fd318..a793a85ff9 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -374,14 +374,14 @@ const reactionsPagination = computed(() => ({ async function addReplyTo(replyNote: Misskey.entities.Note) { replies.value.unshift(replyNote); - appearNote.repliesCount += 1; + appearNote.value.repliesCount += 1; } async function removeReply(id: Misskey.entities.Note['id']) { const replyIdx = replies.value.findIndex(note => note.id === id); if (replyIdx >= 0) { replies.value.splice(replyIdx, 1); - appearNote.repliesCount -= 1; + appearNote.value.repliesCount -= 1; } } diff --git a/packages/frontend/src/components/MkNoteSub.vue b/packages/frontend/src/components/MkNoteSub.vue index d1e45b30bb..887a9b5c45 100644 --- a/packages/frontend/src/components/MkNoteSub.vue +++ b/packages/frontend/src/components/MkNoteSub.vue @@ -144,14 +144,14 @@ const isRenote = ( async function addReplyTo(replyNote: Misskey.entities.Note) { replies.value.unshift(replyNote); - appearNote.repliesCount += 1; + appearNote.value.repliesCount += 1; } async function removeReply(id: Misskey.entities.Note['id']) { const replyIdx = replies.value.findIndex(note => note.id === id); if (replyIdx >= 0) { replies.value.splice(replyIdx, 1); - appearNote.repliesCount -= 1; + appearNote.value.repliesCount -= 1; } } diff --git a/packages/frontend/src/components/SkNoteDetailed.vue b/packages/frontend/src/components/SkNoteDetailed.vue index 06783f7fff..df0259a2c7 100644 --- a/packages/frontend/src/components/SkNoteDetailed.vue +++ b/packages/frontend/src/components/SkNoteDetailed.vue @@ -382,14 +382,14 @@ const reactionsPagination = computed(() => ({ async function addReplyTo(replyNote: Misskey.entities.Note) { replies.value.unshift(replyNote); - appearNote.repliesCount += 1; + appearNote.value.repliesCount += 1; } async function removeReply(id: Misskey.entities.Note['id']) { const replyIdx = replies.value.findIndex(note => note.id === id); if (replyIdx >= 0) { replies.value.splice(replyIdx, 1); - appearNote.repliesCount -= 1; + appearNote.value.repliesCount -= 1; } } diff --git a/packages/frontend/src/components/SkNoteSub.vue b/packages/frontend/src/components/SkNoteSub.vue index bee4074bd0..5928b2676c 100644 --- a/packages/frontend/src/components/SkNoteSub.vue +++ b/packages/frontend/src/components/SkNoteSub.vue @@ -153,14 +153,14 @@ const isRenote = ( async function addReplyTo(replyNote: Misskey.entities.Note) { replies.value.unshift(replyNote); - appearNote.repliesCount += 1; + appearNote.value.repliesCount += 1; } async function removeReply(id: Misskey.entities.Note['id']) { const replyIdx = replies.value.findIndex(note => note.id === id); if (replyIdx >= 0) { replies.value.splice(replyIdx, 1); - appearNote.repliesCount -= 1; + appearNote.value.repliesCount -= 1; } }