Commit 1f9bce7f by Tobias Skarhed Committed by Marcus Efraimsson

PanelLinks: Fix render issue when there is no panel description (#18408)

Make empty string if there is no panel description
parent 760aec7d
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment