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: handle the broken state

Palash gupta4a287fd112d9
diff --git a/frontend/src/modules/Servicemap/utils.ts b/frontend/src/modules/Servicemap/utils.ts
index de94109d61..21b93952a8 100644
--- a/frontend/src/modules/Servicemap/utils.ts
+++ b/frontend/src/modules/Servicemap/utils.ts
@@ -20,8 +20,8 @@ export const getDimensions = (num, highest) => {
export const getGraphData = (serviceMap): graphDataType => {
const { items, services } = serviceMap;
- const highestCallCount = maxBy(items, (e) => e.callCount).callCount;
- const highestCallRate = maxBy(services, (e) => e.callRate).callRate;
+ const highestCallCount = maxBy(items, (e) => e?.callCount)?.callCount;
+ const highestCallRate = maxBy(services, (e) => e?.callRate)?.callRate;
const divNum = Number(
String(1).padEnd(highestCallCount.toString().length, '0'),
);