perf: duplicate getSchedule request (#17191)

* fix: duplicate getSchedule request

* fix: add event type id
This commit is contained in:
Udit Takkar authored and GitHub committed 2024-10-20 08:56:37 +00:00
1 parent f70e8c5189
commit c7f4f52efa
9 files changed
+15 -11

No files matched your search

@@ -10,7 +10,7 @@ import type { EmbedProps } from "@lib/withEmbedSsr";
export type PageProps = inferSSRProps<typeof getServerSideProps> & EmbedProps;
function Type({ slug, user, booking, isEmbed, isBrandingHidden, entity, duration }: PageProps) {
function Type({ slug, user, booking, isEmbed, isBrandingHidden, entity, eventTypeId, duration }: PageProps) {
return (
<main className={getBookerWrapperClasses({ isEmbed: !!isEmbed })}>
<BookerSeo
@@ -29,7 +29,7 @@ function Type({ slug, user, booking, isEmbed, isBrandingHidden, entity, duration
hideBranding={isBrandingHidden}
isTeamEvent
isInstantMeeting
entity={entity}
entity={{ ...entity, eventTypeId: eventTypeId }}
duration={duration}
/>
</main>
+1 -1
View File
@@ -53,7 +53,7 @@ function Type({
isInstantMeeting={isInstantMeeting}
hideBranding={isBrandingHidden}
isTeamEvent
entity={eventData.entity}
entity={{ ...eventData.entity, eventTypeId: eventData?.eventTypeId }}
durationConfig={eventData.metadata?.multipleDuration}
/* TODO: Currently unused, evaluate it is needed-
* Possible alternative approach is to have onDurationChange.
@@ -52,7 +52,7 @@ function Type({
eventSlug={slug}
bookingData={booking}
hideBranding={isBrandingHidden}
entity={eventData.entity}
entity={{ ...eventData.entity, eventTypeId: eventData?.id }}
durationConfig={eventData.metadata?.multipleDuration}
orgBannerUrl={orgBannerUrl}
/* TODO: Currently unused, evaluate it is needed-