Alerting: Fix updating condition when refId changes (#97753)
fix updating condition when refid changes
This commit is contained in:
+2
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user