mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Fix updating condition when refId changes (#97753)
fix updating condition when refid changes
This commit is contained in:
parent
32155b22d6
commit
3c2c5610bd
@ -269,10 +269,10 @@ export const QueryAndExpressionsStep = ({ editingExistingRule, onDataChange }: P
|
||||
|
||||
// update condition too if refId was updated
|
||||
if (condition === oldRefId) {
|
||||
handleSetCondition(newRefId);
|
||||
setValue('condition', newRefId);
|
||||
}
|
||||
},
|
||||
[condition, queries, handleSetCondition]
|
||||
[condition, queries, setValue]
|
||||
);
|
||||
|
||||
const updateExpressionAndDatasource = useSetExpressionAndDataSource();
|
||||
|
Loading…
Reference in New Issue
Block a user