From 1f9bce7f9f21a38639324a1fda45b86af836600e Mon Sep 17 00:00:00 2001 From: Tobias Skarhed Date: Tue, 6 Aug 2019 14:30:09 +0200 Subject: [PATCH] PanelLinks: Fix render issue when there is no panel description (#18408) Make empty string if there is no panel description --- public/app/features/panel/panel_ctrl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/panel/panel_ctrl.ts b/public/app/features/panel/panel_ctrl.ts index 473ccdbb99b..0202cd595c8 100644 --- a/public/app/features/panel/panel_ctrl.ts +++ b/public/app/features/panel/panel_ctrl.ts @@ -248,10 +248,10 @@ export class PanelCtrl { } getInfoContent(options: { mode: string }) { - let markdown = this.panel.description; + let markdown = this.panel.description || ''; if (options.mode === 'tooltip') { - markdown = this.error || this.panel.description; + markdown = this.error || this.panel.description || ''; } const linkSrv: LinkSrv = this.$injector.get('linkSrv');