Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

use params

Max Schmidt3decad5198c1
diff --git a/src/components/hooks/queries/useWebsiteMetrics.ts b/src/components/hooks/queries/useWebsiteMetrics.ts
index 184fd4d44..530eb5aa4 100644
--- a/src/components/hooks/queries/useWebsiteMetrics.ts
+++ b/src/components/hooks/queries/useWebsiteMetrics.ts
@@ -20,12 +20,8 @@ export function useWebsiteMetrics(
},
],
queryFn: async () => {
- const filters = { ...params };
-
- filters[queryParams.type] = undefined;
-
const data = await get(`/websites/${websiteId}/metrics`, {
- ...filters,
+ ...params,
...queryParams,
});