Browse Source

fix(nc-gui): prevent reload on selected view change for week view and month view

pull/7611/head
DarkPhoenix2704 10 months ago
parent
commit
d59fc8ea0f
  1. 4
      packages/nc-gui/composables/useCalendarViewStore.ts

4
packages/nc-gui/composables/useCalendarViewStore.ts

@ -456,7 +456,11 @@ const [useProvideCalendarViewStore, useCalendarViewStore] = useInjectionState(
}
watch(selectedDate, async () => {
if (activeCalendarView.value === 'month' || activeCalendarView.value === 'week') {
await loadSidebarData()
} else {
await Promise.all([loadCalendarData(), loadSidebarData()])
}
})
watch(selectedDateRange, async () => {

Loading…
Cancel
Save