mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PanelLinks: Fix render issue when there is no panel description (#18408)
Make empty string if there is no panel description
This commit is contained in:
parent
760aec7d3b
commit
1f9bce7f9f
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user