mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Fixed session properties.
This commit is contained in:
parent
5feae93162
commit
c7d39a3e94
5 changed files with 12 additions and 18 deletions
|
|
@ -2,4 +2,5 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
flex: 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ export function LoadingPanel({
|
|||
className?: string;
|
||||
children: ReactNode;
|
||||
}) {
|
||||
const isEmpty = !data?.length && !isLoading && isFetched;
|
||||
const isEmpty = !isLoading && isFetched && data && Array.isArray(data) && data.length > 0;
|
||||
|
||||
return (
|
||||
<div className={classNames(styles.panel, className)}>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ export function useSessionData(websiteId: string, sessionId: string) {
|
|||
return useQuery({
|
||||
queryKey: ['session:data', { websiteId, sessionId }],
|
||||
queryFn: () => {
|
||||
return get(`/sessions/${sessionId}/data`, { websiteId });
|
||||
return get(`/websites/${websiteId}/sessions/${sessionId}/properties`, { websiteId });
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue