mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 10:11:12 -05:00
Fix validation for optional fields
This commit is contained in:
@@ -83,6 +83,8 @@ export function OperatorForm({ onSubmit, onCancel, initialData }: OperatorFormPr
|
||||
...data,
|
||||
company_type: 'operator' as const,
|
||||
founded_year: data.founded_year ? parseInt(String(data.founded_year)) : undefined,
|
||||
founded_date: undefined,
|
||||
founded_date_precision: undefined,
|
||||
banner_image_id: undefined,
|
||||
banner_image_url: undefined,
|
||||
card_image_id: undefined,
|
||||
|
||||
Reference in New Issue
Block a user