Alerting: Don't reset value when changing evaluator method on classic condition (#35750)

This commit is contained in:
Peter Holmberg
2021-06-16 14:11:36 +02:00
committed by GitHub
parent dcd4bf1615
commit 407bd2d619

View File

@ -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! },
});
};