From f918b3bf9d7b1d07946a4943295f6b6895a513fa Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 6 Mar 2023 04:00:00 -0500 Subject: [PATCH] [v9.4.x] Alerting: Prevent resetting the form on evaluation group interval change (#63794) Co-authored-by: Virginia Cepeda Co-authored-by: Gilles De Mey --- .../alerting/unified/components/rule-editor/AlertRuleForm.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/app/features/alerting/unified/components/rule-editor/AlertRuleForm.tsx b/public/app/features/alerting/unified/components/rule-editor/AlertRuleForm.tsx index f822db3a53f..790a7e419b5 100644 --- a/public/app/features/alerting/unified/components/rule-editor/AlertRuleForm.tsx +++ b/public/app/features/alerting/unified/components/rule-editor/AlertRuleForm.tsx @@ -161,10 +161,9 @@ export const AlertRuleForm: FC = ({ existing, prefill }) => { condition: 'C', ...defaultsInQueryParamsObject, type: RuleFormType.grafana, - evaluateEvery: evaluateEvery, }); } - }, [defaultDsAndQueries.queries, reset, existing, prefill, defaultsInQueryParamsObject, evaluateEvery]); + }, [defaultDsAndQueries.queries, reset, existing, prefill, defaultsInQueryParamsObject]); const type = watch('type'); const dataSourceName = watch('dataSourceName');