add prisma cli to dependencies, make zod checks more permissive
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
# Frontend Environment Variables
|
||||
# Use /api for production (proxied by nginx)
|
||||
# Use http://localhost:8000 for local development
|
||||
VITE_API_URL=http://localhost:8000
|
||||
@@ -265,13 +265,14 @@ export const Editor: React.FC = () => {
|
||||
if (!id) return;
|
||||
|
||||
try {
|
||||
// Ensure we always have valid data structure
|
||||
const persistableAppState = {
|
||||
viewBackgroundColor: appState.viewBackgroundColor,
|
||||
gridSize: appState.gridSize,
|
||||
viewBackgroundColor: appState?.viewBackgroundColor || '#ffffff',
|
||||
gridSize: appState?.gridSize || null,
|
||||
};
|
||||
|
||||
const snapshot = latestElementsRef.current ?? elements;
|
||||
const persistableElements = Array.from(snapshot);
|
||||
const snapshot = latestElementsRef.current ?? elements ?? [];
|
||||
const persistableElements = Array.isArray(snapshot) ? snapshot : [];
|
||||
|
||||
console.log("[Editor] Saving drawing", {
|
||||
drawingId: id,
|
||||
|
||||
Reference in New Issue
Block a user