mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 00:11:14 -05:00
Fix error propagation in forms
This commit is contained in:
@@ -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 */}
|
||||
|
||||
Reference in New Issue
Block a user