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.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
fix: add safety check to check if anomaly rule in uplot chart options (#6343)
Yunus M4978fb95997d
diff --git a/frontend/src/lib/uPlotLib/getUplotChartOptions.ts b/frontend/src/lib/uPlotLib/getUplotChartOptions.tsindex 78617669a2..9a42a6df94 100644--- a/frontend/src/lib/uPlotLib/getUplotChartOptions.ts+++ b/frontend/src/lib/uPlotLib/getUplotChartOptions.ts@@ -163,7 +163,8 @@ export const getUPlotChartOptions = ({const stackBarChart = stackChart && isUndefined(hiddenGraph);- const isAnomalyRule = apiResponse?.data?.newResult?.data?.result[0].isAnomaly;+ const isAnomalyRule =+ apiResponse?.data?.newResult?.data?.result[0]?.isAnomaly || false;const series = getStackedSeries(apiResponse?.data?.result || []);