Explorar o código

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

Torkel Ödegaard %!s(int64=9) %!d(string=hai) anos
pai
achega
4c5bdd9da4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {
       return 'info';
     }
-    if (this.panel.links.length > 0) {
+    if (this.panel.links && this.panel.links.length) {
       return 'links';
     }
     return '';