From ece3911d338564a01d62af9d7583495b3b3eeb16 Mon Sep 17 00:00:00 2001 From: Ignatius Bagus Date: Tue, 17 Oct 2023 17:55:18 +0700 Subject: [PATCH] fix: update selected after node update --- src/lib/runtime.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/runtime.ts b/src/lib/runtime.ts index aee1faa..df64e3e 100644 --- a/src/lib/runtime.ts +++ b/src/lib/runtime.ts @@ -109,8 +109,7 @@ port.onMessage.addListener(({ type, payload }) => { Object.assign(current, payload.node); resolveEventBubble(current); - // if ($selected?.id === node.id) selected.update((o) => o); - + selected.update((o) => o); return current.invalidate(); }