fix demo session 2

This commit is contained in:
Urtzi Alfaro
2026-01-02 12:18:46 +01:00
parent cf0176673c
commit 0a1951051f
14 changed files with 497 additions and 810 deletions

View File

@@ -307,7 +307,7 @@ export const useChildrenPerformance = (
export const useDistributionOverview = (
parentTenantId: string,
date: string,
options?: { enabled?: boolean }
options?: { enabled?: boolean; refetchInterval?: number }
): UseQueryResult<DistributionOverview> => {
return useQuery({
queryKey: ['enterprise', 'distribution-overview', parentTenantId, date],
@@ -331,6 +331,7 @@ export const useDistributionOverview = (
},
staleTime: 30000, // 30s cache
enabled: options?.enabled ?? true,
refetchInterval: options?.refetchInterval,
});
};