Skip to content

Commit

Permalink
fix: invalidate the cache for the alerts rules post update call (#6046)
Browse files Browse the repository at this point in the history
  • Loading branch information
vikrantgupta25 authored Sep 20, 2024
1 parent 0218f70 commit 4aabfe7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/container/FormAlertRules/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,10 @@ function FormAlertRules({
});

// invalidate rule in cache
ruleCache.invalidateQueries([REACT_QUERY_KEY.ALERT_RULE_DETAILS, ruleId]);
ruleCache.invalidateQueries([
REACT_QUERY_KEY.ALERT_RULE_DETAILS,
`${ruleId}`,
]);

// eslint-disable-next-line sonarjs/no-identical-functions
setTimeout(() => {
Expand Down

0 comments on commit 4aabfe7

Please sign in to comment.