mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-12 21:41:32 +08:00
fix: invalidate the cache for the alerts rules post update call (#6046)
This commit is contained in:
parent
0218f701b2
commit
4aabfe7cf5
@ -370,7 +370,10 @@ function FormAlertRules({
|
|||||||
});
|
});
|
||||||
|
|
||||||
// invalidate rule in cache
|
// 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
|
// eslint-disable-next-line sonarjs/no-identical-functions
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user