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

This commit is contained in:
Torkel Ödegaard 2016-12-20 15:24:53 +01:00
parent fa01022494
commit 4c5bdd9da4

View File

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