mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 18:00:17 +01:00
remove unit limit on month
This commit is contained in:
parent
170a269723
commit
3353277829
@ -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…
Reference in New Issue
Block a user