From 0fa991a4b95ba7daf56be2ffa45bd975b15189ac Mon Sep 17 00:00:00 2001 From: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com> Date: Thu, 25 May 2023 09:08:56 -0700 Subject: [PATCH] Prometheus: Heatmap Format with No Data (#68938) * Prometheus: Heatmap Format with No Data * Simplify conditional logic --- public/app/plugins/datasource/prometheus/result_transformer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/prometheus/result_transformer.ts b/public/app/plugins/datasource/prometheus/result_transformer.ts index c8240735e45..fefbd37ffe5 100644 --- a/public/app/plugins/datasource/prometheus/result_transformer.ts +++ b/public/app/plugins/datasource/prometheus/result_transformer.ts @@ -620,7 +620,7 @@ export function getOriginalMetricName(labelData: { [key: string]: string }) { } function mergeHeatmapFrames(frames: DataFrame[]): DataFrame[] { - if (frames.length === 0) { + if (frames.length === 0 || (frames.length === 1 && frames[0].length === 0)) { return []; }