Added fallback to hostsFixed too which is used in COLLECTIVE (#6500)
parent
af0b08bb2b
commit
716407ad90
|
@ -204,8 +204,14 @@ const EventTypePage = (props: EventTypeSetupProps) => {
|
|||
metadata,
|
||||
hosts: !!eventType.hosts?.length
|
||||
? eventType.hosts.filter((host) => !host.isFixed)
|
||||
: eventType.users.map((user) => ({ userId: user.id })),
|
||||
hostsFixed: eventType.hosts.filter((host) => host.isFixed),
|
||||
: eventType.users
|
||||
.filter(() => eventType.schedulingType === SchedulingType.ROUND_ROBIN)
|
||||
.map((user) => ({ userId: user.id })),
|
||||
hostsFixed: !!eventType.hosts?.length
|
||||
? eventType.hosts.filter((host) => host.isFixed)
|
||||
: eventType.users
|
||||
.filter(() => eventType.schedulingType === SchedulingType.COLLECTIVE)
|
||||
.map((user) => ({ userId: user.id })),
|
||||
},
|
||||
resolver: zodResolver(
|
||||
z
|
||||
|
|
Loading…
Reference in New Issue