Fix error propagation in forms

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 16:51:49 +00:00
parent 700c29c910
commit 12de4e2ec1
8 changed files with 71 additions and 16 deletions

View File

@@ -274,6 +274,9 @@ export function ParkForm({ onSubmit, onCancel, initialData, isEditing = false }:
hasNewOwner: !!tempNewPropertyOwner
}
});
// Re-throw so parent can handle modal closing
throw error;
}
};