Skip to content

AI-native design editor. Open-source Figma alternative.

Fix properties panel reactivity: spread node objects in computed

Danila Poyarkov639a2a943ec8
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
})