Scheduling infrastructure for absolutely everyone.
fix: booker atom not resetting month query param (#14715)
Lauris Skraucisb3b7a09cfbfb
diff --git a/packages/platform/atoms/booker/BookerPlatformWrapper.tsx b/packages/platform/atoms/booker/BookerPlatformWrapper.tsxindex 36c6c9e9fcd..db25bdadd71 100644--- a/packages/platform/atoms/booker/BookerPlatformWrapper.tsx+++ b/packages/platform/atoms/booker/BookerPlatformWrapper.tsx@@ -60,6 +60,7 @@ export const BookerPlatformWrapper = (props: BookerPlatformWrapperAtomProps) =>const setBookingData = useBookerStore((state) => state.setBookingData);const setSelectedTimeslot = useBookerStore((state) => state.setSelectedTimeslot);+ const setSelectedMonth = useBookerStore((state) => state.setMonth);const { data: booking } = useGetBookingForReschedule({uid: props.rescheduleUid ?? props.bookingUid ?? "",onSuccess: (data) => {@@ -73,6 +74,7 @@ export const BookerPlatformWrapper = (props: BookerPlatformWrapperAtomProps) =>setBookerState("loading");setSelectedDate(null);setSelectedTimeslot(null);+ setSelectedMonth(null);};}, []);