Skip to content

Commit 1270e4d

Browse files
deBasMan21khassel
authored andcommitted
Update calendar.js
1 parent e2429e2 commit 1270e4d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎defaultmodules/calendar/calendar.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,9 +595,9 @@ Module.register("calendar", {
595595
if (eventsByDate[dateStr] && eventsByDate[dateStr].length > 0) {
596596
// If there are any events today then get all those events and select the currently active events and the events that are starting later in the day.
597597
newEvents.push(...eventsByDate[dateStr].filter((ev) => this.timestampToMoment(ev.endDate).isAfter(moment())));
598-
// Since we found a day with events, increase the daysCollected by 1
599-
daysCollected++;
600598
}
599+
// Increment the daysCollected by one to ensure the while loop does not get stuck.
600+
daysCollected++;
601601
// Search for the next day
602602
currentDate.add(1, "day");
603603
}

0 commit comments

Comments
 (0)