fix: Broken SSR for event booking pages (#14497)

* fix: Broken SSR for event type pages

* Add test

* Consider requestedSlug as well for instances that require payment

* Add a todo test
This commit is contained in:
Hariom Balhara authored and GitHub committed 2024-04-11 10:57:15 +01:00
1 parent 621067acd8
commit aa2808d621
9 files changed
+83 -8

No files matched your search

@@ -189,6 +189,7 @@ export const getPublicEvent = async (
},
entity: {
considerUnpublished: !fromRedirectOfNonOrgLink && unPublishedOrgUser !== undefined,
fromRedirectOfNonOrgLink,
orgSlug: org,
name: unPublishedOrgUser?.profile?.organization?.name ?? null,
},
@@ -291,6 +292,7 @@ export const getPublicEvent = async (
profile: getProfileFromEvent(eventWithUserProfiles),
users,
entity: {
fromRedirectOfNonOrgLink,
considerUnpublished:
!fromRedirectOfNonOrgLink &&
(eventWithUserProfiles.team?.slug === null ||