Forráskód Böngészése

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

Make empty string if there is no panel description
Tobias Skarhed 6 éve
szülő
commit
1f9bce7f9f
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      public/app/features/panel/panel_ctrl.ts

+ 2 - 2
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');