fix: invalidate the cache for the alerts rules post update call (#6046)

This commit is contained in:
Vikrant Gupta 2024-09-20 18:13:55 +05:30 committed by GitHub
parent 0218f701b2
commit 4aabfe7cf5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(() => {