mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +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 () => {
|
||||
const filters = { ...params };
|
||||
const view = searchParams.get('view');
|
||||
|
||||
if (view && filters[view]) {
|
||||
filters[view] = undefined;
|
||||
}
|
||||
|
||||
const data = await get(`/websites/${websiteId}/metrics`, {
|
||||
...filters,
|
||||
...params,
|
||||
[searchParams.get('view')]: undefined,
|
||||
...queryParams,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue