From 675b7debe7f115b54968038866ab0905db37ffc4 Mon Sep 17 00:00:00 2001 From: Gilles De Mey Date: Fri, 1 Mar 2024 18:08:17 +0100 Subject: [PATCH] Alerting: Assume rule not found when everything is undefined (#83774) --- public/app/features/alerting/unified/RuleViewer.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/app/features/alerting/unified/RuleViewer.tsx b/public/app/features/alerting/unified/RuleViewer.tsx index 3a57a2088ee..9d3112a67be 100644 --- a/public/app/features/alerting/unified/RuleViewer.tsx +++ b/public/app/features/alerting/unified/RuleViewer.tsx @@ -74,7 +74,12 @@ const RuleViewerV2Wrapper = (props: RuleViewerProps) => { ); } - return null; + // if we get here assume we can't find the rule + return ( + + + + ); }; interface ErrorMessageProps {