fix: booker atom month reset (#14732)
This commit is contained in:
@@ -209,6 +209,10 @@ export const useBookerStore = create<BookerStore>((set, get) => ({
|
||||
},
|
||||
month: getQueryParam("month") || getQueryParam("date") || dayjs().format("YYYY-MM"),
|
||||
setMonth: (month: string | null) => {
|
||||
if (!month) {
|
||||
removeQueryParam("month");
|
||||
return;
|
||||
}
|
||||
set({ month, selectedTimeslot: null });
|
||||
updateQueryParam("month", month ?? "");
|
||||
get().setSelectedDate(null);
|
||||
|
||||
Reference in New Issue
Block a user