mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
use params
Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
parent
cb790fd466
commit
3decad5198
1 changed files with 1 additions and 5 deletions
|
|
@ -20,12 +20,8 @@ export function useWebsiteMetrics(
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const filters = { ...params };
|
|
||||||
|
|
||||||
filters[queryParams.type] = undefined;
|
|
||||||
|
|
||||||
const data = await get(`/websites/${websiteId}/metrics`, {
|
const data = await get(`/websites/${websiteId}/metrics`, {
|
||||||
...filters,
|
...params,
|
||||||
...queryParams,
|
...queryParams,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue