Scheduling infrastructure for absolutely everyone.
Set selecteddate to today when switching layout. Before we were getting the current layout from the store, which would actually be the OLD layout you were switching from 😅 (#8711)
Jeroen Reumkensab50067194bc
diff --git a/packages/features/bookings/Booker/store.ts b/packages/features/bookings/Booker/store.tsindex 359d84d426c..ba84ced3ca6 100644--- a/packages/features/bookings/Booker/store.ts+++ b/packages/features/bookings/Booker/store.ts@@ -101,7 +101,7 @@ export const useBookerStore = create<BookerStore>((set, get) => ({setLayout: (layout: BookerLayout) => {// If we switch to a large layout and don't have a date selected yet,// we selected it here, so week title is rendered properly.- if (["large_calendar", "large_timeslots"].includes(get().layout) && !get().selectedDate) {+ if (["large_calendar", "large_timeslots"].includes(layout) && !get().selectedDate) {set({ selectedDate: dayjs().format("YYYY-MM-DD") });}return set({ layout });