Browse Source

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

Torkel Ödegaard 6 năm trước cách đây
mục cha
commit
f58ab7945b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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() {