Skip to content

Commit

Permalink
Revert "Added fallback to hostsFixed too which is used in COLLECTIVE (c…
Browse files Browse the repository at this point in the history
…alcom#6500)"

This reverts commit 716407a.
  • Loading branch information
haffla committed Mar 20, 2023
1 parent 8143816 commit 4d1d423
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions apps/web/pages/event-types/[type]/index.tsx
Expand Up @@ -199,14 +199,8 @@ const EventTypePage = (props: EventTypeSetupProps) => {
metadata,
hosts: !!eventType.hosts?.length
? 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 })),
: eventType.users.map((user) => ({ userId: user.id })),
hostsFixed: eventType.hosts.filter((host) => host.isFixed),
},
resolver: zodResolver(
z
Expand Down

0 comments on commit 4d1d423

Please sign in to comment.