diff --git a/static/src/app/app.component.ts b/static/src/app/app.component.ts index 16d6e96..cae031c 100644 --- a/static/src/app/app.component.ts +++ b/static/src/app/app.component.ts @@ -61,12 +61,8 @@ export class AppComponent implements OnInit { this.scrollToTop(); } // show sidebar menu on initial stats page access - if (router.url.includes('/stats')) { - this.showSidebarToggleBtn = true; - this.sidebarOpen = true; - } else { - this.showSidebarToggleBtn = false; - } + this.sidebarOpen = true; + this.showSidebarToggleBtn = router.url.includes('/stats'); } }); }