mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 23:11:13 -05:00
Fix validation for optional fields
This commit is contained in:
@@ -83,6 +83,8 @@ export function DesignerForm({ onSubmit, onCancel, initialData }: DesignerFormPr
|
||||
...data,
|
||||
company_type: 'designer' 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