mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
Prometheus: Heatmap Format with No Data (#68938)
* Prometheus: Heatmap Format with No Data * Simplify conditional logic
This commit is contained in:
parent
a06a5a7393
commit
0fa991a4b9
@ -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 [];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user