From 5ca136dc3d3398a0386132a75a88ad3de8b6f30a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D1=80=D0=B8=D1=81=D1=82=D0=B8=D0=BD=D0=B0=20=D0=98?= =?UTF-8?q?=D0=B2=D0=B0=D1=89=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Mon, 18 Dec 2017 13:45:40 +0700 Subject: [PATCH] fix(top-bar): SSHKey sidebar doesn`t open (closes #797) (#798) --- src/app/shared/components/top-bar/top-bar.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/shared/components/top-bar/top-bar.component.ts b/src/app/shared/components/top-bar/top-bar.component.ts index 61bcf66937..4e8de9050d 100644 --- a/src/app/shared/components/top-bar/top-bar.component.ts +++ b/src/app/shared/components/top-bar/top-bar.component.ts @@ -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'; + } } }