diff --git a/apps/web/pages/team/[slug]/book.tsx b/apps/web/pages/team/[slug]/book.tsx index 957cafbba8..44c9fcfbd4 100644 --- a/apps/web/pages/team/[slug]/book.tsx +++ b/apps/web/pages/team/[slug]/book.tsx @@ -85,7 +85,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { const eventType = { ...eventTypeRaw, //TODO: Use zodSchema to verify it instead of using Type Assertion - locations: privacyFilteredLocations(eventTypeRaw.locations as LocationObject[]), + locations: privacyFilteredLocations((eventTypeRaw.locations || []) as LocationObject[]), recurringEvent: parseRecurringEvent(eventTypeRaw.recurringEvent), };