Ver código fonte

heatmap: fix error when series empty

Alexander Zobnin 6 anos atrás
pai
commit
bef024e4eb
1 arquivos alterados com 1 adições e 1 exclusões
  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() {
   onRender() {
-    if (!this.range) {
+    if (!this.range || !this.series) {
       return;
       return;
     }
     }