fix demo session 2
This commit is contained in:
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user