Skip to content

Commit 0baf58f

Browse files
committed
fix regression calendar.maximumEntries not used
1 parent 9a76920 commit 0baf58f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)