mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 05:11:13 -05:00
Fix date display and edit form issues
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user