Merge pull request #1044 from cederstrom/honor-calendar-maximum-entries

Slice the list of all calendar events to honor config.maximumEntries
This commit is contained in:
Michael Teeuw 2017-10-01 21:51:33 +02:00 committed by GitHub
commit 6e051d73c1
2 changed files with 4 additions and 1 deletions

View File

@ -13,6 +13,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Updated
### Fixed
- Fixed issue with calendar module showing more than `maximumEntries` allows
## [2.1.3] - 2017-10-01
**Note:** This update uses new dependencies. Please update using the following command: `git pull && npm install`

View File

@ -356,7 +356,7 @@ Module.register("calendar", {
return a.startDate - b.startDate;
});
return events;
return events.slice(0, this.config.maximumEntries);
},
/* createEventList(url)