Skip to content

Commit 4c5bdd9

Browse files
committed
fix(panel): need to check if panel has links
1 parent fa01022 commit 4c5bdd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/app/features/panel/panel_ctrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export class PanelCtrl {
252252
if (!!this.panel.description) {
253253
return 'info';
254254
}
255-
if (this.panel.links.length > 0) {
255+
if (this.panel.links && this.panel.links.length) {
256256
return 'links';
257257
}
258258
return '';

0 commit comments

Comments
 (0)