Separated query string date handling. Fixed all time date.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user