mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
Separated query string date handling. Fixed all time date.
This commit is contained in:
parent
1def80ba42
commit
b36cd48b4a
7 changed files with 86 additions and 66 deletions
|
|
@ -15,7 +15,7 @@ export function WebsiteChart({
|
|||
const { startDate, endDate, unit, value } = dateRange;
|
||||
const { data, isLoading, isFetching, error } = useWebsitePageviewsQuery({
|
||||
websiteId,
|
||||
compare: compareMode ? dateCompare : undefined,
|
||||
compare: compareMode ? dateCompare?.['value'] : undefined,
|
||||
});
|
||||
const { pageviews, sessions, compare } = (data || {}) as any;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue