From ffb27d1545a2ccdae0dcb56eca38dfa834ed4c21 Mon Sep 17 00:00:00 2001 From: Ignatius Bagus Date: Tue, 26 Mar 2024 15:41:35 +0700 Subject: [PATCH] fix: ignore inspect toggle events --- src/lib/runtime.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/runtime.ts b/src/lib/runtime.ts index a6421b0..bee6673 100644 --- a/src/lib/runtime.ts +++ b/src/lib/runtime.ts @@ -46,6 +46,7 @@ port.onMessage.addListener(({ type, payload }) => { } case 'bridge::ext/inspect': { + if (typeof payload === 'string') return; const current = nodes.get(payload.node.id); return selected.set(current); }