mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
Fixed paging in events/sessions.
This commit is contained in:
parent
8c26e310f7
commit
465a03f987
9 changed files with 26 additions and 19 deletions
|
|
@ -11,7 +11,8 @@ export function useWebsiteEventsQuery(websiteId: string, options?: ReactQueryOpt
|
|||
|
||||
return usePagedQuery({
|
||||
queryKey: ['websites:events', { websiteId, ...date, ...filters }],
|
||||
queryFn: () => get(`/websites/${websiteId}/events`, { ...date, ...filters, pageSize: 20 }),
|
||||
queryFn: pageParams =>
|
||||
get(`/websites/${websiteId}/events`, { ...date, ...filters, ...pageParams, pageSize: 20 }),
|
||||
enabled: !!websiteId,
|
||||
...options,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue