Alerting: Fix QueryAndExpressionStep not using the right query (#61738)

Fix QueryAndExpressionStep not using the right query
pull/61802/head
Sonia Aguilar 2 years ago committed by GitHub
parent 3b718a3e8f
commit a6102105af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      public/app/features/alerting/unified/components/rule-editor/query-and-alert-condition/QueryAndExpressionsStep.tsx

@ -67,8 +67,8 @@ export const QueryAndExpressionsStep: FC<Props> = ({ editingExistingRule }) => {
}, []);
const runQueries = useCallback(() => {
runner.current.run(queries);
}, [queries]);
runner.current.run(getValues('queries'));
}, [getValues]);
// whenever we update the queries we have to update the form too
useEffect(() => {

Loading…
Cancel
Save