mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 08:47:12 -06:00
Alerting: Don't reset value when changing evaluator method on classic condition (#35750)
This commit is contained in:
parent
dcd4bf1615
commit
407bd2d619
@ -44,7 +44,7 @@ export const Condition: FC<Props> = ({ condition, index, onChange, onRemoveCondi
|
||||
const onEvalFunctionChange = (evalFunction: SelectableValue<EvalFunction>) => {
|
||||
onChange({
|
||||
...condition,
|
||||
evaluator: { params: [], type: evalFunction.value! },
|
||||
evaluator: { params: condition.evaluator.params, type: evalFunction.value! },
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user