[agendaview] Fix week not loaded if window resized from 3 to 7 days

This commit is contained in:
Ferdinand Thiessen 2021-11-25 15:33:50 +01:00
parent 4c92fb0ff7
commit f79823531d
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ export default defineComponent({
minutes: 0,
hours: 0,
});
const start = calendarRealView.value === 'day' ? selected : startOfWeek(selected);
const start = calendarView.value === 'day' ? selected : startOfWeek(selected);
const end = date.addToDate(start, { days: calendarDays.value });
events.value = {};