AI-native design editor. Open-source Figma alternative.
Fix vector node fills set to undefined on pen commit
Danila Poyarkovdb45e09c761a
diff --git a/src/stores/editor.ts b/src/stores/editor.tsindex c44fe5cf3..5d5c92a10 100644--- a/src/stores/editor.ts+++ b/src/stores/editor.ts@@ -303,7 +303,9 @@ export function createEditorStore() {updateNode(nodeId, {vectorNetwork: normalizedNetwork,name: 'Vector',- fills: closed ? undefined : [],+ fills: closed+ ? [{ type: 'SOLID' as const, color: { r: 0.83, g: 0.83, b: 0.83, a: 1 }, opacity: 1, visible: true }]+ : [],strokes: closed? []: [{ color: { r: 0, g: 0, b: 0, a: 1 }, weight: 2, opacity: 1, visible: true, align: 'CENTER' as const }]