Skip to content

Commit e25209d

Browse files
authored
Merge pull request #2871 from sdetweil/fix_maxEntries
Fix maximumEntries regression
2 parents 9a76920 + 1f4ac82 commit e25209d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Special thanks to the following contributors: @10bias, @CFenner, @JHWelch, @k1rd
6161
- Don't adjust startDate for full day events if endDate is in the past.
6262
- Fix windspeed conversion error in openweathermap provider. (#2812)
6363
- Fix conflicting parms turning off showEnd for full day events. (#2629)
64+
- Fix regression, calendar.maximumEntries not used to filter calendar level entries (#2868)
6465

6566
## [2.18.0] - 2022-01-01
6667

modules/default/calendar/calendarutils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ const CalendarUtils = {
498498
return a.startDate - b.startDate;
499499
});
500500

501-
return newEvents;
501+
let maxEvents = newEvents.slice(0, config.maximumEntries);
502+
return maxEvents;
502503
},
503504

504505
/**

0 commit comments

Comments
 (0)