mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 08:07:12 +01:00
cleanup
Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
parent
8b676c6370
commit
7e6e79c195
1 changed files with 2 additions and 8 deletions
|
|
@ -22,15 +22,9 @@ export function useWebsiteMetrics(
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const filters = { ...params };
|
|
||||||
const view = searchParams.get('view');
|
|
||||||
|
|
||||||
if (view && filters[view]) {
|
|
||||||
filters[view] = undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
const data = await get(`/websites/${websiteId}/metrics`, {
|
const data = await get(`/websites/${websiteId}/metrics`, {
|
||||||
...filters,
|
...params,
|
||||||
|
[searchParams.get('view')]: undefined,
|
||||||
...queryParams,
|
...queryParams,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue