Alerting: Prevent resetting the form on evaluation group interval change (#63763)
Prevent resetting the form on evaluateEvery change
This commit is contained in:
@@ -161,10 +161,9 @@ export const AlertRuleForm: FC<Props> = ({ 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');
|
||||
|
||||
Reference in New Issue
Block a user