Parcourir la source

fix(panel): need to check if panel has links

Torkel Ödegaard il y a 9 ans
Parent
commit
4c5bdd9da4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      public/app/features/panel/panel_ctrl.ts

+ 1 - 1
public/app/features/panel/panel_ctrl.ts

@@ -252,7 +252,7 @@ export class PanelCtrl {
     if (!!this.panel.description) {
     if (!!this.panel.description) {
       return 'info';
       return 'info';
     }
     }
-    if (this.panel.links.length > 0) {
+    if (this.panel.links && this.panel.links.length) {
       return 'links';
       return 'links';
     }
     }
     return '';
     return '';