mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
fix search for segments, fix hooks endpoint for cohorts
This commit is contained in:
parent
2f1f704728
commit
65024d4bf7
6 changed files with 43 additions and 10 deletions
|
|
@ -16,7 +16,7 @@ export function useWebsiteCohortsQuery(
|
|||
return useQuery({
|
||||
queryKey: ['website:cohorts', { websiteId, modified, ...filters, ...params }],
|
||||
queryFn: pageParams => {
|
||||
return get(`/websites/${websiteId}/cohorts`, { ...pageParams, ...filters, ...params });
|
||||
return get(`/websites/${websiteId}/segments`, { ...pageParams, ...filters, ...params });
|
||||
},
|
||||
enabled: !!websiteId,
|
||||
placeholderData: keepPreviousData,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue