浏览代码

heatmap: fix error when series empty

Alexander Zobnin 6 年之前
父节点
当前提交
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;
     }