From 73f7972d62b3011e1c8ac8995642381321983e04 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 30 Jul 2023 10:15:38 +0000 Subject: [PATCH] fix --- packages/frontend/src/scripts/entity-manager.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/scripts/entity-manager.ts b/packages/frontend/src/scripts/entity-manager.ts index c6157779af..f758f21c1c 100644 --- a/packages/frontend/src/scripts/entity-manager.ts +++ b/packages/frontend/src/scripts/entity-manager.ts @@ -164,15 +164,16 @@ export class NoteManager { executeInterruptor: () => Promise, } { const note = this.get(id); - const interruptedNote = ref(unref(note)); + const interruptedNote = ref(note.value); + async function executeInterruptor() { if (note.value == null) { interruptedNote.value = null; return; } - if (noteViewInterruptors.length > 0) { - interruptedNote.value = unref(note); + if (noteViewInterruptors.length === 0) { + interruptedNote.value = note.value; return; } @@ -196,6 +197,7 @@ export class NoteManager { */ public getNoteViewBase(id: string) { const { interruptedNote: note, interruptorUnwatch, executeInterruptor } = this.getInterrupted(id); + //const note = this.get(id); const isRenote = computed(() => ( note.value != null && note.value.renote != null &&