mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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>) => {
|
const onEvalFunctionChange = (evalFunction: SelectableValue<EvalFunction>) => {
|
||||||
onChange({
|
onChange({
|
||||||
...condition,
|
...condition,
|
||||||
evaluator: { params: [], type: evalFunction.value! },
|
evaluator: { params: condition.evaluator.params, type: evalFunction.value! },
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user