Alerting: Assume rule not found when everything is undefined (#83774)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user