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. 6
      packages/nc-gui/composables/useCalendarViewStore.ts

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

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

Loading…
Cancel
Save