Przeglądaj źródła

heatmap: fix error when series empty

Alexander Zobnin 6 lat temu
rodzic
commit
bef024e4eb
1 zmienionych plików z 1 dodań i 1 usunięć
  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;
     }