From 038337b17d2f36346edca34597082e1e15b83ad1 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 1 Jul 2025 11:58:36 +1000 Subject: [PATCH] Dashboard widgets refresh automatically (#9917) --- .../components/dashboard/widgets/QueryCountDashboardWidget.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/src/components/dashboard/widgets/QueryCountDashboardWidget.tsx b/src/frontend/src/components/dashboard/widgets/QueryCountDashboardWidget.tsx index 3db70f530b..37f48d9498 100644 --- a/src/frontend/src/components/dashboard/widgets/QueryCountDashboardWidget.tsx +++ b/src/frontend/src/components/dashboard/widgets/QueryCountDashboardWidget.tsx @@ -39,6 +39,7 @@ function QueryCountWidget({ queryKey: ['dashboard-query-count', modelType, params], enabled: user.hasViewPermission(modelType), refetchOnMount: true, + refetchInterval: 5 * 60 * 1000, // 5 minutes queryFn: () => { return api .get(apiUrl(modelProperties.api_endpoint), {