Skip to content

Commit 8ae9d18

Browse files
committed
Return default value for getDatesBetween
1 parent 7ca542d commit 8ae9d18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/aggregation/mat/computations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function getDatesBetween(startDate, endDate, timeGrain) {
2424
const weekStart = dayjs(currentDate).utc().startOf('week')
2525
dateSet.add(weekStart.toISOString().slice(0, 10))
2626
currentDate = weekStart.add(1, 'week').toDate()
27-
} else if (timeGrain === 'day') {
27+
} else {
2828
dateSet.add(currentDate.toISOString().slice(0, 10))
2929
currentDate.setDate(currentDate.getDate() + 1)
3030
}

0 commit comments

Comments
 (0)