From de956d8deeaa2a035321d48f7a8dd31c982ee745 Mon Sep 17 00:00:00 2001 From: tamaina Date: Wed, 9 Aug 2023 03:39:03 +0000 Subject: [PATCH] fix --- packages/frontend/src/scripts/entity-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/scripts/entity-manager.ts b/packages/frontend/src/scripts/entity-manager.ts index 7e72782198..a4165667cf 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); + return computed(() => this.notesComputed.get(id)?.value ?? null); } /**