Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
fix(top-bar): SSHKey sidebar doesn`t open (closes #797) (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyRoach authored Dec 18, 2017
1 parent 1cab600 commit 5ca136d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/shared/components/top-bar/top-bar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export class TopBarComponent {
}

private showSidebarForSG(): boolean {
return this.activatedRoute.snapshot.firstChild.firstChild.routeConfig.path !== 'rules';
if (this.activatedRoute.snapshot.firstChild.firstChild) {
return this.activatedRoute.snapshot.firstChild.firstChild.routeConfig.path !== 'rules';
}
}
}

0 comments on commit 5ca136d

Please sign in to comment.