There was an error while loading. Please reload this page.
1 parent e2429e2 commit 1270e4dCopy full SHA for 1270e4d
1 file changed
defaultmodules/calendar/calendar.js
@@ -595,9 +595,9 @@ Module.register("calendar", {
595
if (eventsByDate[dateStr] && eventsByDate[dateStr].length > 0) {
596
// 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.
597
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++;
600
}
+ // Increment the daysCollected by one to ensure the while loop does not get stuck.
+ daysCollected++;
601
// Search for the next day
602
currentDate.add(1, "day");
603
0 commit comments