Browse Source

heatmap: fix error when series empty

Alexander Zobnin 6 năm trước cách đây
mục cha
commit
bef024e4eb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
     }