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

pull/7019/head
Torkel Ödegaard 9 years ago
parent fa01022494
commit 4c5bdd9da4
  1. 2
      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 '';

Loading…
Cancel
Save