Respect macCycleLength in getCyclesBefore

This commit is contained in:
Julia Friesel
2018-12-21 14:48:49 +01:00
parent 9bd0eedfaf
commit 9fd0105506
2 changed files with 126 additions and 0 deletions
+2
View File
@@ -62,6 +62,8 @@ export default function config(opts) {
return cycleStartsSortedByDate
.slice(startFromHere)
.map(getCycleForCycleStartDay)
// filter the ones exceeding macCycleLength
.filter(cycle => cycle)
}
function getCycleForCycleStartDay(startDay) {