diff --git a/packages/frontend/src/scripts/entity-manager.ts b/packages/frontend/src/scripts/entity-manager.ts index 905a04f97a..4c07d9a85c 100644 --- a/packages/frontend/src/scripts/entity-manager.ts +++ b/packages/frontend/src/scripts/entity-manager.ts @@ -241,10 +241,10 @@ export class NoteManager { interruptedNote.value = result; }; - const interruptorUnwatch = (() => { + const interruptorUnwatch = () => { if (this.isDebuggerEnabled) console.log('NoteManager: interruptorUnwatch', id, interruptedNote); return watch(firstNote, executeInterruptor); - })(); + }; if (this.isDebuggerEnabled) { console.log('NoteManager: get interrupted note (new)', id, { note: firstNote, interruptedNote });