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

This commit is contained in:
Peter Holmberg authored and GitHub committed 2021-06-16 14:11:36 +02:00
1 parent dcd4bf1615
commit 407bd2d619
1 file changed
+1 -1
@@ -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! },
});
};