mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Fixed filter params.
This commit is contained in:
parent
7c42f0da82
commit
f3657685d1
@ -19,10 +19,11 @@ export function useFilterQuery<T>({
|
|||||||
query: '',
|
query: '',
|
||||||
page: 1,
|
page: 1,
|
||||||
});
|
});
|
||||||
|
|
||||||
const { useQuery } = useApi();
|
const { useQuery } = useApi();
|
||||||
const { data, ...query } = useQuery({
|
const { data, ...query } = useQuery({
|
||||||
queryKey: [...queryKey, params],
|
queryKey: [{ ...queryKey, ...params }],
|
||||||
queryFn: (data: any) => queryFn({ ...data, ...params }),
|
queryFn: () => queryFn(params as any),
|
||||||
...options,
|
...options,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user