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