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