Default to null for now (#5302)

This commit is contained in:
Alex van Andel
2022-10-31 18:42:45 +00:00
committed by GitHub
parent f934dc6f4f
commit 6484f1639c
+1 -1
View File
@@ -460,7 +460,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
const eventType = {
...restEventType,
schedule: rawEventType.schedule?.id || rawEventType.users[0].defaultScheduleId,
schedule: rawEventType.schedule?.id || rawEventType.users[0]?.defaultScheduleId || null,
recurringEvent: parseRecurringEvent(restEventType.recurringEvent),
bookingLimits: parseBookingLimit(restEventType.bookingLimits),
locations: locations as unknown as LocationObject[],