diff --git a/public/app/features/alerting/unified/components/rule-editor/EvaluationGroupQuickPick.tsx b/public/app/features/alerting/unified/components/rule-editor/EvaluationGroupQuickPick.tsx index 6de3a7bb081..ece27c80404 100644 --- a/public/app/features/alerting/unified/components/rule-editor/EvaluationGroupQuickPick.tsx +++ b/public/app/features/alerting/unified/components/rule-editor/EvaluationGroupQuickPick.tsx @@ -5,7 +5,7 @@ import { Button, Stack } from '@grafana/ui'; import { formatPrometheusDuration, parsePrometheusDuration, safeParsePrometheusDuration } from '../../utils/time'; -const MIN_INTERVAl = config.unifiedAlerting.minInterval ?? '10s'; +const MIN_INTERVAl = config.unifiedAlerting?.minInterval ?? '10s'; export const getEvaluationGroupOptions = (minInterval = MIN_INTERVAl) => { const MIN_OPTIONS_TO_SHOW = 8; const DEFAULT_INTERVAL_OPTIONS: number[] = [ diff --git a/public/app/features/dashboard-scene/scene/export/exporters.test.ts b/public/app/features/dashboard-scene/scene/export/exporters.test.ts index f91f1563abc..fb2ff60e7e4 100644 --- a/public/app/features/dashboard-scene/scene/export/exporters.test.ts +++ b/public/app/features/dashboard-scene/scene/export/exporters.test.ts @@ -48,6 +48,9 @@ jest.mock('@grafana/runtime', () => ({ featureToggles: { newVariables: false, }, + unifiedAlerting: { + minInterval: '10s', + }, }, })); diff --git a/public/app/features/dashboard/components/DashExportModal/DashboardExporter.test.ts b/public/app/features/dashboard/components/DashExportModal/DashboardExporter.test.ts index 0b987d2ed8c..a35d521b54b 100644 --- a/public/app/features/dashboard/components/DashExportModal/DashboardExporter.test.ts +++ b/public/app/features/dashboard/components/DashExportModal/DashboardExporter.test.ts @@ -40,6 +40,9 @@ jest.mock('@grafana/runtime', () => ({ featureToggles: { newVariables: false, }, + unifiedAlerting: { + minInterval: '10s', + }, }, })); diff --git a/public/app/features/plugins/components/AppRootPage.test.tsx b/public/app/features/plugins/components/AppRootPage.test.tsx index 621556d8a02..6964a141996 100644 --- a/public/app/features/plugins/components/AppRootPage.test.tsx +++ b/public/app/features/plugins/components/AppRootPage.test.tsx @@ -42,6 +42,9 @@ jest.mock('@grafana/runtime', () => ({ }, }, }, + unifiedAlerting: { + minInterval: '10s', + }, }, }));