make eventpage optional (#7573)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
pull/7411/head^2
Carina Wollendorfer 2023-03-07 18:50:34 -05:00 committed by GitHub
parent 163444a0f9
commit 804ba04983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ const locationFormSchema = z.array(
);
const querySchema = z.object({
eventPage: z.string(),
eventPage: z.string().optional(),
teamId: z.union([z.string().transform((val) => +val), z.number()]).optional(),
title: z.string().optional(),
slug: z.string().optional(),