Browse Source

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

Torkel Ödegaard 6 years ago
parent
commit
f58ab7945b
1 changed files with 1 additions and 1 deletions
  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() {