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