Respect macCycleLength in getCyclesBefore
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user