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

pull/35829/head
Peter Holmberg 4 years ago committed by GitHub
parent dcd4bf1615
commit 407bd2d619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/features/expressions/components/Condition.tsx

@ -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…
Cancel
Save