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

@@ -94,6 +94,9 @@ export function OperatorForm({ onSubmit, onCancel, initialData }: OperatorFormPr
action: initialData?.id ? 'Update Operator' : 'Create Operator',
metadata: { companyName: data.name }
});
// Re-throw so parent can handle modal closing
throw error;
}
})} className="space-y-6">
{/* Basic Information */}