浏览代码

PanelModel: Fix crash after window resize, fixes #16933 (#16942)

Torkel Ödegaard 6 年之前
父节点
当前提交
f58ab7945b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/app/features/dashboard/state/PanelModel.ts

+ 1 - 1
public/app/features/dashboard/state/PanelModel.ts

@@ -324,7 +324,7 @@ export class PanelModel {
   }
 
   hasTitle() {
-    return !!this.title.length;
+    return this.title && this.title.length > 0;
   }
 
   destroy() {