Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

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

Vikrant Gupta4aabfe7cf5d8
diff --git a/frontend/src/container/FormAlertRules/index.tsx b/frontend/src/container/FormAlertRules/index.tsx
index f53a6b2cfe..2947b2a0b3 100644
--- a/frontend/src/container/FormAlertRules/index.tsx
+++ b/frontend/src/container/FormAlertRules/index.tsx
@@ -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(() => {