From 5bc1fbb8c24854a22b5d655caa470de9244f0972 Mon Sep 17 00:00:00 2001 From: Dhairyashil Shinde <93669429+dhairyashiil@users.noreply.github.com> Date: Tue, 21 Oct 2025 19:34:42 +0530 Subject: [PATCH] fix: Allow booking details view for round robin with no hosts (#24250) * Fix: Allow booking details view for round robin with no hosts * Fix: Allow booking details view for round robin with no hosts * fix: include the missing fields with defaults * fix: include the missing fields with defaults --- ...ookings-single-view.getServerSideProps.tsx | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/apps/web/modules/bookings/views/bookings-single-view.getServerSideProps.tsx b/apps/web/modules/bookings/views/bookings-single-view.getServerSideProps.tsx index 4223b5cf6c..2506f2846f 100644 --- a/apps/web/modules/bookings/views/bookings-single-view.getServerSideProps.tsx +++ b/apps/web/modules/bookings/views/bookings-single-view.getServerSideProps.tsx @@ -121,13 +121,22 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { : eventTypeRaw.users; if (!eventTypeRaw.users.length) { - if (!eventTypeRaw.owner) - return { - notFound: true, - } as const; - eventTypeRaw.users.push({ - ...eventTypeRaw.owner, - }); + if (!eventTypeRaw.owner) { + if (bookingInfoRaw.user) { + eventTypeRaw.users.push({ + ...bookingInfoRaw.user, + hideBranding: false, + theme: null, + brandColor: null, + darkBrandColor: null, + isPlatformManaged: false, + }); + } else { + return { notFound: true } as const; + } + } else { + eventTypeRaw.users.push({ ...eventTypeRaw.owner }); + } } const eventType = {