From 7fd9cbbfb599a6d5aae764496a6014c7b0cab396 Mon Sep 17 00:00:00 2001 From: Tom Ratcliffe Date: Mon, 25 Mar 2024 18:23:27 +0000 Subject: [PATCH] Export alerts limit for reuse when re-fetching rules list --- public/app/features/alerting/unified/RuleList.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/app/features/alerting/unified/RuleList.tsx b/public/app/features/alerting/unified/RuleList.tsx index 7bb7f408302..77b2391a5dd 100644 --- a/public/app/features/alerting/unified/RuleList.tsx +++ b/public/app/features/alerting/unified/RuleList.tsx @@ -33,7 +33,7 @@ const VIEWS = { }; // make sure we ask for 1 more so we show the "show x more" button -const LIMIT_ALERTS = INSTANCES_DISPLAY_LIMIT + 1; +export const LIMIT_ALERTS = INSTANCES_DISPLAY_LIMIT + 1; const RuleList = withErrorBoundary( () => { @@ -103,7 +103,6 @@ const RuleList = withErrorBoundary( const combinedNamespaces: CombinedRuleNamespace[] = useCombinedRuleNamespaces(); const filteredNamespaces = useFilteredRules(combinedNamespaces, filterState); - return ( // We don't want to show the Loading... indicator for the whole page. // We show separate indicators for Grafana-managed and Cloud rules