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 <noreply@anthropic.com>
This commit is contained in:
Andymick
2026-07-18 15:17:39 +01:00
co-authored by Claude Haiku 4.5
parent 8ec34a60c9
commit 469ea49374
+1
View File
@@ -630,6 +630,7 @@ export default function DesignCanvas({ product }: { product: ProductDTO }) {
fontFamily: 'Fraunces',
fontSize: 28,
fill: '#17181C',
curvedPath: null,
},
]);
setSelectedId(id);