mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 11:31:13 -05:00
Fix submission flow for street address
Update submission and moderation pipeline to correctly handle `street_address`. This includes: - Adding `street_address` to the Zod schema in `ParkForm.tsx`. - Ensuring `street_address` is included in `tempLocationData` for park and composite park creations in `entitySubmissionHelpers.ts`. - Preserving `street_address` when editing submissions in `submissionItemsService.ts`. - Saving `street_address` when new locations are created during submission approval in `submissionItemsService.ts`.
This commit is contained in:
@@ -43,6 +43,7 @@ const parkSchema = z.object({
|
||||
closing_date_precision: z.enum(['day', 'month', 'year']).optional(),
|
||||
location: z.object({
|
||||
name: z.string(),
|
||||
street_address: z.string().optional(),
|
||||
city: z.string().optional(),
|
||||
state_province: z.string().optional(),
|
||||
country: z.string(),
|
||||
|
||||
Reference in New Issue
Block a user