mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
remove unit limit on month
This commit is contained in:
parent
170a269723
commit
3353277829
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ export function incrementDateRange(value, increment) {
|
|||
export function getAllowedUnits(startDate, endDate) {
|
||||
const units = ['minute', 'hour', 'day', 'month', 'year'];
|
||||
const minUnit = getMinimumUnit(startDate, endDate);
|
||||
const index = units.indexOf(minUnit);
|
||||
const index = units.indexOf(minUnit === 'year' ? 'month' : minUnit);
|
||||
|
||||
return index >= 0 ? units.splice(index) : [];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue