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.

chore: error state is updated

Palash3603e497a657
diff --git a/frontend/src/pages/EditRules/index.tsx b/frontend/src/pages/EditRules/index.tsx
index 1a65e668af..09cda600ab 100644
--- a/frontend/src/pages/EditRules/index.tsx
+++ b/frontend/src/pages/EditRules/index.tsx
@@ -35,7 +35,11 @@ function EditRules(): JSX.Element {
}
}, [isValidRuleId, ruleId]);
- if ((isError && !isValidRuleId) || ruleId == null) {
+ if (
+ (isError && !isValidRuleId) ||
+ ruleId == null ||
+ (data?.payload?.data === undefined && !isLoading)
+ ) {
return <div>{data?.error || t('something_went_wrong')}</div>;
}