add missing `.value`

This commit is contained in:
dakkar 2023-12-23 14:47:14 +00:00
parent 576a87118c
commit fea6428245
4 changed files with 8 additions and 8 deletions

View File

@ -374,14 +374,14 @@ const reactionsPagination = computed(() => ({
async function addReplyTo(replyNote: Misskey.entities.Note) { async function addReplyTo(replyNote: Misskey.entities.Note) {
replies.value.unshift(replyNote); replies.value.unshift(replyNote);
appearNote.repliesCount += 1; appearNote.value.repliesCount += 1;
} }
async function removeReply(id: Misskey.entities.Note['id']) { async function removeReply(id: Misskey.entities.Note['id']) {
const replyIdx = replies.value.findIndex(note => note.id === id); const replyIdx = replies.value.findIndex(note => note.id === id);
if (replyIdx >= 0) { if (replyIdx >= 0) {
replies.value.splice(replyIdx, 1); replies.value.splice(replyIdx, 1);
appearNote.repliesCount -= 1; appearNote.value.repliesCount -= 1;
} }
} }

View File

@ -144,14 +144,14 @@ const isRenote = (
async function addReplyTo(replyNote: Misskey.entities.Note) { async function addReplyTo(replyNote: Misskey.entities.Note) {
replies.value.unshift(replyNote); replies.value.unshift(replyNote);
appearNote.repliesCount += 1; appearNote.value.repliesCount += 1;
} }
async function removeReply(id: Misskey.entities.Note['id']) { async function removeReply(id: Misskey.entities.Note['id']) {
const replyIdx = replies.value.findIndex(note => note.id === id); const replyIdx = replies.value.findIndex(note => note.id === id);
if (replyIdx >= 0) { if (replyIdx >= 0) {
replies.value.splice(replyIdx, 1); replies.value.splice(replyIdx, 1);
appearNote.repliesCount -= 1; appearNote.value.repliesCount -= 1;
} }
} }

View File

@ -382,14 +382,14 @@ const reactionsPagination = computed(() => ({
async function addReplyTo(replyNote: Misskey.entities.Note) { async function addReplyTo(replyNote: Misskey.entities.Note) {
replies.value.unshift(replyNote); replies.value.unshift(replyNote);
appearNote.repliesCount += 1; appearNote.value.repliesCount += 1;
} }
async function removeReply(id: Misskey.entities.Note['id']) { async function removeReply(id: Misskey.entities.Note['id']) {
const replyIdx = replies.value.findIndex(note => note.id === id); const replyIdx = replies.value.findIndex(note => note.id === id);
if (replyIdx >= 0) { if (replyIdx >= 0) {
replies.value.splice(replyIdx, 1); replies.value.splice(replyIdx, 1);
appearNote.repliesCount -= 1; appearNote.value.repliesCount -= 1;
} }
} }

View File

@ -153,14 +153,14 @@ const isRenote = (
async function addReplyTo(replyNote: Misskey.entities.Note) { async function addReplyTo(replyNote: Misskey.entities.Note) {
replies.value.unshift(replyNote); replies.value.unshift(replyNote);
appearNote.repliesCount += 1; appearNote.value.repliesCount += 1;
} }
async function removeReply(id: Misskey.entities.Note['id']) { async function removeReply(id: Misskey.entities.Note['id']) {
const replyIdx = replies.value.findIndex(note => note.id === id); const replyIdx = replies.value.findIndex(note => note.id === id);
if (replyIdx >= 0) { if (replyIdx >= 0) {
replies.value.splice(replyIdx, 1); replies.value.splice(replyIdx, 1);
appearNote.repliesCount -= 1; appearNote.value.repliesCount -= 1;
} }
} }