Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Add orgSlug to slots.getSchedule call (#25397)

Alex van Andel016ae6ea4b8f
diff --git a/packages/platform/atoms/booker/BookerWebWrapper.tsx b/packages/platform/atoms/booker/BookerWebWrapper.tsx
index 0a398dd405a..92fd5667eff 100644
--- a/packages/platform/atoms/booker/BookerWebWrapper.tsx
+++ b/packages/platform/atoms/booker/BookerWebWrapper.tsx
@@ -163,6 +163,7 @@ const BookerPlatformWrapperComponent = (props: BookerWebWrapperAtomProps) => {
fromRedirectOfNonOrgLink: props.entity.fromRedirectOfNonOrgLink,
isTeamEvent: props.isTeamEvent ?? !!event.data?.team,
useApiV2: props.useApiV2,
+ ...(props.entity.orgSlug ? { orgSlug: props.entity.orgSlug } : {}),
});
const bookings = useBookings({
event,
@@ -213,7 +214,6 @@ const BookerPlatformWrapperComponent = (props: BookerWebWrapperAtomProps) => {
useEffect(() => {
if (hasSession) onOverlaySwitchStateChange(true);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [hasSession]);
return (