mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +01:00
Fix another date range bug.
This commit is contained in:
parent
7d25fd6876
commit
d57da4c04e
2 changed files with 5 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ export default function useDateRange(websiteId, defaultDateRange = '24hour') {
|
|||
|
||||
if (typeof globalDefault === 'string') {
|
||||
globalDateRange = getDateRange(globalDefault);
|
||||
} else {
|
||||
} else if (typeof globalDateRange === 'object') {
|
||||
globalDateRange = {
|
||||
...globalDefault,
|
||||
startDate: parseISO(globalDefault.startDate),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue