From f16dd0bf65284821089f5a5ac88a7564cd234929 Mon Sep 17 00:00:00 2001 From: Cameron Pettit <71421099+cameronpettit@users.noreply.github.com> Date: Thu, 6 May 2021 11:27:41 -0700 Subject: [PATCH] hiding mine details in sidebar when enforcement-actions showing (#851) --- .../projects/admin-nrpti/src/app/sidebar/sidebar.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angular/projects/admin-nrpti/src/app/sidebar/sidebar.component.ts b/angular/projects/admin-nrpti/src/app/sidebar/sidebar.component.ts index a8fdcfea6..61d511bab 100644 --- a/angular/projects/admin-nrpti/src/app/sidebar/sidebar.component.ts +++ b/angular/projects/admin-nrpti/src/app/sidebar/sidebar.component.ts @@ -53,7 +53,7 @@ export class SidebarComponent implements OnDestroy { this.currentMenu = currentMenu && currentMenu.split(';')[0]; if (mainRoute === 'mines') { - if (mainRouteId && mainRouteId !== 'enforcement-actions') { + if (mainRouteId && !mainRouteId.includes('enforcement-actions')) { this.currentMineId = mainRouteId; try { this.currentMenu = currentMenu;