소스 검색

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 '';