From 016ae6ea4b8fd30fac386bc0a9f6477d828b4b1d Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Thu, 11 Dec 2025 07:10:40 +0000 Subject: [PATCH] fix: Add orgSlug to slots.getSchedule call (#25397) * fix: Add orgSlug to slots.getSchedule call * Don't pass null if orgSlug is missing --- packages/platform/atoms/booker/BookerWebWrapper.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/platform/atoms/booker/BookerWebWrapper.tsx b/packages/platform/atoms/booker/BookerWebWrapper.tsx index 0a398dd405..92fd5667ef 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 (