From 639a2a943ec80ec28ba2cf8829c490a8a6d2ce39 Mon Sep 17 00:00:00 2001 From: Danila Poyarkov Date: Sat, 28 Feb 2026 00:14:25 +0300 Subject: [PATCH] Fix properties panel reactivity: spread node objects in computed Vue's computed caching compares array contents by reference. Since graph.getNode() returns the same mutable object, the computed saw no change even when properties were mutated. Spreading creates new objects so Vue detects the difference. --- src/stores/editor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/editor.ts b/src/stores/editor.ts index 764b04b91..aa3fb1059 100644 --- a/src/stores/editor.ts +++ b/src/stores/editor.ts @@ -103,7 +103,7 @@ export function createEditorStore() { const nodes: SceneNode[] = [] for (const id of state.selectedIds) { const n = graph.getNode(id) - if (n) nodes.push(n) + if (n) nodes.push({ ...n }) } return nodes })