mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 05:07:15 +01:00
Merge branch 'dev' of https://github.com/umami-software/umami into dev
This commit is contained in:
commit
e5c19482ab
2 changed files with 8 additions and 1 deletions
|
|
@ -263,6 +263,13 @@ export function getOffsetDateRange(dateRange: DateRange, increment: number) {
|
|||
const { unit: originalUnit } = parseDateValue(value) || {};
|
||||
|
||||
switch (originalUnit) {
|
||||
case 'day':
|
||||
return {
|
||||
...dateRange,
|
||||
startDate: addDays(startDate, increment),
|
||||
endDate: addDays(endDate, increment),
|
||||
offset: offset + increment,
|
||||
};
|
||||
case 'week':
|
||||
return {
|
||||
...dateRange,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue