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: labelsArray being returned null despite of labels being present (#5357)

Vikrant Guptada3f6fd7fddf
diff --git a/frontend/src/lib/query/createTableColumnsFromQuery.ts b/frontend/src/lib/query/createTableColumnsFromQuery.ts
index 18926f2f0c..190f7996aa 100644
--- a/frontend/src/lib/query/createTableColumnsFromQuery.ts
+++ b/frontend/src/lib/query/createTableColumnsFromQuery.ts
@@ -583,11 +583,11 @@ export const createTableColumnsFromQuery: CreateTableDataFromQuery = ({
q.series?.sort((a, b) => {
let labelA = '';
let labelB = '';
- a.labelsArray.forEach((lab) => {
+ a.labelsArray?.forEach((lab) => {
labelA += Object.values(lab)[0];
});
- b.labelsArray.forEach((lab) => {
+ b.labelsArray?.forEach((lab) => {
labelB += Object.values(lab)[0];
});