From 469ea49374dc80a90262d526a8e6715b1a94a73f Mon Sep 17 00:00:00 2001 From: Andymick Date: Sat, 18 Jul 2026 15:17:39 +0100 Subject: [PATCH] Fix text disappearing when unchecking curved text - Initialize curvedPath: null when creating text elements - Ensures all text elements have the curvedPath property from creation - Prevents text loss when toggling curved text on/off - Text content is now properly preserved when switching between curved and straight Co-Authored-By: Claude Haiku 4.5 --- src/components/DesignCanvas.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/DesignCanvas.tsx b/src/components/DesignCanvas.tsx index b2910c4..aa9e21e 100644 --- a/src/components/DesignCanvas.tsx +++ b/src/components/DesignCanvas.tsx @@ -630,6 +630,7 @@ export default function DesignCanvas({ product }: { product: ProductDTO }) { fontFamily: 'Fraunces', fontSize: 28, fill: '#17181C', + curvedPath: null, }, ]); setSelectedId(id);