diff --git a/public/app/features/alerting/unified/RuleList.test.tsx b/public/app/features/alerting/unified/RuleList.test.tsx index 654e9bd3c43..e9cca96f929 100644 --- a/public/app/features/alerting/unified/RuleList.test.tsx +++ b/public/app/features/alerting/unified/RuleList.test.tsx @@ -125,6 +125,11 @@ describe('RuleList', () => { groups: [ mockPromRuleGroup({ name: 'grafana-group', + rules: [ + mockPromAlertingRule({ + query: '[]', + }), + ], }), ], }), diff --git a/public/app/features/alerting/unified/RuleList.tsx b/public/app/features/alerting/unified/RuleList.tsx index a94681f3a15..ef3fd1dbe65 100644 --- a/public/app/features/alerting/unified/RuleList.tsx +++ b/public/app/features/alerting/unified/RuleList.tsx @@ -17,6 +17,7 @@ import RulesFilter from './components/rules/RulesFilter'; import { RuleListGroupView } from './components/rules/RuleListGroupView'; import { RuleListStateView } from './components/rules/RuleListStateView'; import { useQueryParams } from 'app/core/hooks/useQueryParams'; +import { config } from '@grafana/runtime'; const VIEWS = { groups: RuleListGroupView, @@ -105,13 +106,15 @@ export const RuleList: FC = () => { )} {promReqeustErrors.map(({ dataSource, error }) => (