From fe41335d1ad6e2a92823df4975b32919c93dd222 Mon Sep 17 00:00:00 2001 From: tamaina Date: Fri, 11 Aug 2023 14:15:46 +0000 Subject: [PATCH] fix --- packages/frontend/src/scripts/entity-manager.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/scripts/entity-manager.ts b/packages/frontend/src/scripts/entity-manager.ts index 88584f4bb9..a4ed314e57 100644 --- a/packages/frontend/src/scripts/entity-manager.ts +++ b/packages/frontend/src/scripts/entity-manager.ts @@ -233,10 +233,11 @@ export class NoteManager { interruptedNote.value = result; }; - const interruptorUnwatch = (() => { + const unwatch = watch(firstNote, executeInterruptor); + const interruptorUnwatch = () => { if (this.isDebuggerEnabled) console.log('NoteManager: interruptorUnwatch', id, interruptedNote); - return watch(firstNote, executeInterruptor); - })(); + unwatch; + }; if (this.isDebuggerEnabled) { console.log('NoteManager: get interrupted note (new)', id, { note: firstNote, interruptedNote });