Prometheus: Heatmap Format with No Data (#68938)

* Prometheus: Heatmap Format with No Data

* Simplify conditional logic
This commit is contained in:
Drew Slobodnjak
2023-05-25 09:08:56 -07:00
committed by GitHub
parent a06a5a7393
commit 0fa991a4b9

View File

@@ -620,7 +620,7 @@ export function getOriginalMetricName(labelData: { [key: string]: string }) {
} }
function mergeHeatmapFrames(frames: DataFrame[]): DataFrame[] { function mergeHeatmapFrames(frames: DataFrame[]): DataFrame[] {
if (frames.length === 0) { if (frames.length === 0 || (frames.length === 1 && frames[0].length === 0)) {
return []; return [];
} }