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

(cherry picked from commit 407bd2d619)

Co-authored-by: Peter Holmberg <peterholmberg@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2021-06-16 14:34:59 +02:00
committed by GitHub
co-authored by Peter Holmberg
parent c5cff65563
commit 3f0e41cd93
@@ -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! },
});
};