mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
add event name to properties table
This commit is contained in:
parent
04de691893
commit
aaf9adacc6
5 changed files with 44 additions and 16 deletions
|
|
@ -4,6 +4,7 @@ import { useFilterParams } from '../useFilterParams';
|
|||
|
||||
export function useEventDataValues(
|
||||
websiteId: string,
|
||||
eventName: string,
|
||||
propertyName: string,
|
||||
options?: Omit<UseQueryOptions, 'queryKey' | 'queryFn'>,
|
||||
) {
|
||||
|
|
@ -12,7 +13,8 @@ export function useEventDataValues(
|
|||
|
||||
return useQuery<any>({
|
||||
queryKey: ['websites:event-data:values', { websiteId, propertyName, ...params }],
|
||||
queryFn: () => get(`/websites/${websiteId}/event-data/values`, { ...params, propertyName }),
|
||||
queryFn: () =>
|
||||
get(`/websites/${websiteId}/event-data/values`, { ...params, eventName, propertyName }),
|
||||
enabled: !!(websiteId && propertyName),
|
||||
...options,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue