mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-01 20:39:44 +01:00
Fixed dashboard display.
This commit is contained in:
parent
4853437afa
commit
858864ef7f
@ -26,7 +26,7 @@ export function useWebsitePageviews(websiteId: string, options?: { [key: string]
|
||||
};
|
||||
|
||||
return useQuery({
|
||||
queryKey: ['websites:pageviews', params],
|
||||
queryKey: ['websites:pageviews', { websiteId, ...params }],
|
||||
queryFn: () => get(`/websites/${websiteId}/pageviews`, params),
|
||||
...options,
|
||||
});
|
||||
|
@ -23,7 +23,7 @@ export function useWebsiteStats(websiteId: string, options?: { [key: string]: st
|
||||
};
|
||||
|
||||
return useQuery({
|
||||
queryKey: ['websites:stats', params],
|
||||
queryKey: ['websites:stats', { websiteId, ...params }],
|
||||
queryFn: () => get(`/websites/${websiteId}/stats`, params),
|
||||
...options,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user