From 67c4b7895eff8163457e460ccd66745eda4a2bdf Mon Sep 17 00:00:00 2001 From: tamaina Date: Wed, 9 Aug 2023 03:56:43 +0000 Subject: [PATCH] :v: --- packages/frontend/src/scripts/entity-manager.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/frontend/src/scripts/entity-manager.ts b/packages/frontend/src/scripts/entity-manager.ts index a4165667cf..3f81bb052b 100644 --- a/packages/frontend/src/scripts/entity-manager.ts +++ b/packages/frontend/src/scripts/entity-manager.ts @@ -195,7 +195,7 @@ export class NoteManager { } else { if (this.isDebuggerEnabled) console.log('NoteManager: get note (cached)', id, this.notesComputed.get(id), this.notesSource.get(id)?.value); } - return computed(() => this.notesComputed.get(id)?.value ?? null); + return this.notesComputed.get(id)!; } /** @@ -314,7 +314,6 @@ export class NoteManager { if (this.isDebuggerEnabled) console.log('NoteManager: onStreamNoteUpdated (not found)', id, note?.value); this.connection?.send('un', { id }); this.captureing.delete(id); - this.notesComputed.delete(id); this.updatedAt.delete(id); return; } else { @@ -384,7 +383,6 @@ export class NoteManager { note.value = null; this.connection?.send('un', { id }); this.captureing.delete(id); - this.notesComputed.delete(id); this.updatedAt.delete(id); break; }