Defaults to !!eventType.schedule (#5688)
parent
e35631aee3
commit
b188368e8f
|
@ -172,7 +172,17 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
|
|||
findDurationType(eventType.minimumBookingNotice),
|
||||
eventType.minimumBookingNotice
|
||||
),
|
||||
metadata: eventType.metadata,
|
||||
// fallback to !!eventType.schedule when 'useHostSchedulesForTeamEvent' is undefined
|
||||
metadata: {
|
||||
...eventType.metadata,
|
||||
config: {
|
||||
...eventType.metadata.config,
|
||||
useHostSchedulesForTeamEvent:
|
||||
typeof eventType.metadata.config?.useHostSchedulesForTeamEvent !== "undefined"
|
||||
? eventType.metadata.config?.useHostSchedulesForTeamEvent === true
|
||||
: !!eventType.schedule,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue