Skip to content

Commit

Permalink
fix(useTimeIntervals): Reinsert additional day to end of timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
vogelino committed Jul 4, 2024
1 parent 49483da commit 76e210b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend-nextjs/src/utility/useTimeIntervals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function useTimeIntervals({
const timeStartFn = getTimeStartByAggregationUnit(aggregationUnit);
const timeIncrementerFn =
getTimeIncrementerByAggregationUnit(aggregationUnit);
const timeDiff = Math.abs(timeComparatorFn(to, from));
const timeDiff = Math.abs(timeComparatorFn(to, from)) + 1;
return new Array(timeDiff)
.fill(null)
.map((_, idx) =>
Expand Down

0 comments on commit 76e210b

Please sign in to comment.