Alerting: Assume rule not found when everything is undefined (#83774)

This commit is contained in:
Gilles De Mey
2024-03-01 18:08:17 +01:00
committed by GitHub
parent 8b551b08f9
commit 675b7debe7
@@ -74,7 +74,12 @@ const RuleViewerV2Wrapper = (props: RuleViewerProps) => {
);
}
return null;
// if we get here assume we can't find the rule
return (
<AlertingPageWrapper pageNav={defaultPageNav} navId="alert-list">
<EntityNotFound entity="Rule" />
</AlertingPageWrapper>
);
};
interface ErrorMessageProps {