Преглед изворни кода

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

Torkel Ödegaard пре 9 година
родитељ
комит
4c5bdd9da4
1 измењених фајлова са 1 додато и 1 уклоњено
  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 '';