Alerting: Prevent resetting the form on evaluation group interval change (#63763)

Prevent resetting the form on evaluateEvery change
This commit is contained in:
Virginia Cepeda 2023-02-27 09:54:34 -03:00 committed by GitHub
parent 9079de068e
commit 2eba37b95b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,10 +161,9 @@ export const AlertRuleForm: FC<Props> = ({ existing, prefill }) => {
condition: 'C', condition: 'C',
...defaultsInQueryParamsObject, ...defaultsInQueryParamsObject,
type: RuleFormType.grafana, type: RuleFormType.grafana,
evaluateEvery: evaluateEvery,
}); });
} }
}, [defaultDsAndQueries.queries, reset, existing, prefill, defaultsInQueryParamsObject, evaluateEvery]); }, [defaultDsAndQueries.queries, reset, existing, prefill, defaultsInQueryParamsObject]);
const type = watch('type'); const type = watch('type');
const dataSourceName = watch('dataSourceName'); const dataSourceName = watch('dataSourceName');