Explorar o código

heatmap: fix error when series empty

Alexander Zobnin %!s(int64=7) %!d(string=hai) anos
pai
achega
bef024e4eb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public/app/plugins/panel/heatmap/heatmap_ctrl.ts

+ 1 - 1
public/app/plugins/panel/heatmap/heatmap_ctrl.ts

@@ -146,7 +146,7 @@ export class HeatmapCtrl extends MetricsPanelCtrl {
   }
 
   onRender() {
-    if (!this.range) {
+    if (!this.range || !this.series) {
       return;
     }