Fix date display and edit form issues

This commit is contained in:
gpt-engineer-app[bot]
2025-11-06 05:01:51 +00:00
parent 328a77a0a8
commit b189f40c1f
5 changed files with 49 additions and 25 deletions

View File

@@ -644,7 +644,21 @@ export default function ParkDetail() {
park_type: park?.park_type,
status: park?.status,
opening_date: park?.opening_date ?? undefined,
opening_date_precision: (park?.opening_date_precision as 'day' | 'month' | 'year') ?? undefined,
closing_date: park?.closing_date ?? undefined,
closing_date_precision: (park?.closing_date_precision as 'day' | 'month' | 'year') ?? undefined,
location_id: park?.location?.id,
location: park?.location ? {
name: park.location.name || '',
city: park.location.city || '',
state_province: park.location.state_province || '',
country: park.location.country || '',
postal_code: park.location.postal_code || '',
latitude: park.location.latitude || 0,
longitude: park.location.longitude || 0,
timezone: park.location.timezone || '',
display_name: park.location.name || '',
} : undefined,
website_url: park?.website_url ?? undefined,
phone: park?.phone ?? undefined,
email: park?.email ?? undefined,