mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Fix QueryAndExpressionStep not using the right query (#61738)
Fix QueryAndExpressionStep not using the right query
This commit is contained in:
parent
3b718a3e8f
commit
a6102105af
@ -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…
Reference in New Issue
Block a user