From bd06607a51423196da0a64b8f79ab8dc8dbc4d5b Mon Sep 17 00:00:00 2001 From: Tom Ratcliffe Date: Tue, 26 Mar 2024 15:28:16 +0000 Subject: [PATCH] Fix typing check for paused rules in table --- .../alerting/unified/components/rules/RulesTable.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/app/features/alerting/unified/components/rules/RulesTable.tsx b/public/app/features/alerting/unified/components/rules/RulesTable.tsx index a65d4e69874..56985d845ef 100644 --- a/public/app/features/alerting/unified/components/rules/RulesTable.tsx +++ b/public/app/features/alerting/unified/components/rules/RulesTable.tsx @@ -119,7 +119,11 @@ function useColumns(showSummaryColumn: boolean, showGroupColumn: boolean, showNe const isValidLastEvaluation = rule.promRule?.lastEvaluation && isValidDate(rule.promRule.lastEvaluation); const isValidIntervalDuration = rule.group.interval && isValidDuration(rule.group.interval); - if (!isValidLastEvaluation || !isValidIntervalDuration || isGrafanaRulerRulePaused(rule)) { + if ( + !isValidLastEvaluation || + !isValidIntervalDuration || + (isGrafanaRulerRule(rule.rulerRule) && isGrafanaRulerRulePaused(rule.rulerRule)) + ) { return; }