diff --git a/packages/platform/atoms/booker-embed/BookerEmbed.tsx b/packages/platform/atoms/booker-embed/BookerEmbed.tsx index e0abf3baab..8c989b1aed 100644 --- a/packages/platform/atoms/booker-embed/BookerEmbed.tsx +++ b/packages/platform/atoms/booker-embed/BookerEmbed.tsx @@ -10,6 +10,7 @@ export const BookerEmbed = ( props: | { routingFormUrl: string; + apiUrl?: string; bannerUrl?: BookerPlatformWrapperAtomPropsForTeam["bannerUrl"]; customClassNames?: BookerPlatformWrapperAtomPropsForTeam["customClassNames"]; onCreateBookingSuccess?: BookerPlatformWrapperAtomPropsForTeam["onCreateBookingSuccess"]; @@ -30,9 +31,14 @@ export const BookerEmbed = ( } | (BookerPlatformWrapperAtomPropsForIndividual & { organizationId?: number; + apiUrl?: string; + routingFormUrl?: undefined; + }) + | (BookerPlatformWrapperAtomPropsForTeam & { + organizationId?: number; + apiUrl?: string; routingFormUrl?: undefined; }) - | (BookerPlatformWrapperAtomPropsForTeam & { organizationId?: number; routingFormUrl?: undefined }) ) => { // Use Routing Form Url To Display Correct Booker const routingFormUrlProps = useGetRoutingFormUrlProps(props); @@ -48,14 +54,14 @@ export const BookerEmbed = ( crmAppSlug, ...routingFormSearchParams } = routingFormUrlProps; - const { onDryRunSuccess, ...rest } = props; + const { onDryRunSuccess, apiUrl, ...rest } = props; return ( - + ); }