瀏覽代碼

heatmap: fix error when series empty

Alexander Zobnin 7 年之前
父節點
當前提交
bef024e4eb
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
     }