revert fetcher filtering results

This commit is contained in:
Sam Detweiler 2020-10-12 10:12:47 -05:00
parent 26caeec0c1
commit 485f662d75

View File

@ -395,8 +395,11 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn
}
});
// send all our events to upper to merge, sort and reduce for display
events = newEvents;
newEvents.sort(function (a, b) {
return a.startDate - b.startDate;
});
events = newEvents.slice(0, maximumEntries);
self.broadcastEvents();
scheduleTimer();