From f58ab7945b51920c4675aa40b8df613a852b471b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 8 May 2019 17:21:46 +0200 Subject: [PATCH] PanelModel: Fix crash after window resize, fixes #16933 (#16942) --- public/app/features/dashboard/state/PanelModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/dashboard/state/PanelModel.ts b/public/app/features/dashboard/state/PanelModel.ts index d8ea2d01db3..156ae6dfa72 100644 --- a/public/app/features/dashboard/state/PanelModel.ts +++ b/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() {