Scheduling infrastructure for absolutely everyone.
fix: wrong reschedule link for an org member for a booking on event outside the org (#15260)
Kartik Saini61f436be2a45
diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsxindex 9f2a98a5501..0e8fb2a1a11 100644--- a/apps/web/components/booking/BookingListItem.tsx+++ b/apps/web/components/booking/BookingListItem.tsx@@ -15,7 +15,6 @@ import ViewRecordingsDialog from "@calcom/features/ee/video/ViewRecordingsDialogimport classNames from "@calcom/lib/classNames";import { formatTime } from "@calcom/lib/date-fns";import getPaymentAppData from "@calcom/lib/getPaymentAppData";-import { useBookerUrl } from "@calcom/lib/hooks/useBookerUrl";import { useCopy } from "@calcom/lib/hooks/useCopy";import { useLocale } from "@calcom/lib/hooks/useLocale";import { useGetTheme } from "@calcom/lib/hooks/useTheme";@@ -70,7 +69,6 @@ type BookingItemProps = BookingItem & {};function BookingListItem(booking: BookingItemProps) {- const bookerUrl = useBookerUrl();const { userId, userTimeZone, userTimeFormat, userEmail } = booking.loggedInUser;const {@@ -183,7 +181,7 @@ function BookingListItem(booking: BookingItemProps) {id: "reschedule",icon: "clock" as const,label: t("reschedule_booking"),- href: `${bookerUrl}/reschedule/${booking.uid}${+ href: `/reschedule/${booking.uid}${booking.seatsReferences.length ? `?seatReferenceUid=${getSeatReferenceUid()}` : ""}`,},