From b353b3dec029c45b39ebec9fc187c399309107a6 Mon Sep 17 00:00:00 2001 From: Nicolas Pennec Date: Fri, 6 Dec 2024 13:59:48 +0100 Subject: [PATCH] [schedule] fix max date --- src/components/widgets/Schedule.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/widgets/Schedule.vue b/src/components/widgets/Schedule.vue index 3d130442aa..0f3adec9b8 100644 --- a/src/components/widgets/Schedule.vue +++ b/src/components/widgets/Schedule.vue @@ -702,7 +702,7 @@ export default { dayOff => dayOff.date ) - do { + while (day.isSameOrBefore(endDate)) { day.off = daysOff.includes(day.toISOString().slice(0, 10)) day.newWeek = day.isoWeekday() === 1 day.newMonth = day.date() === 1 @@ -714,7 +714,7 @@ export default { day.dayText = day.format('ddd')[0] days.push(day) day = day.clone().add(1, 'days') - } while (day.isBefore(endDate)) + } // always show month and week number at start of schedule if (days.length) {