From 1ba30b4de3f1ab47083c83b0b027d00b589b1aa7 Mon Sep 17 00:00:00 2001 From: Andre Pereira Date: Mon, 30 Oct 2023 19:31:29 +0000 Subject: [PATCH] Tempo: Fix #76764 (#77395) Fix error when using streaming and spans table type --- public/app/plugins/datasource/tempo/resultTransformer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/tempo/resultTransformer.ts b/public/app/plugins/datasource/tempo/resultTransformer.ts index e63cc21bc78..9870b47251e 100644 --- a/public/app/plugins/datasource/tempo/resultTransformer.ts +++ b/public/app/plugins/datasource/tempo/resultTransformer.ts @@ -690,7 +690,7 @@ export function createTableFrameFromTraceQlQueryAsSpans( const spanDynamicAttrs: Record = {}; let hasNameAttribute = false; - data.forEach( + data?.forEach( (t) => t.spanSets?.forEach((ss) => { ss.attributes?.forEach((attr) => {