From 5e859c235d4fbec425fe5709753fef4942d5b527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Barbeau?= Date: Thu, 12 Sep 2019 16:22:07 -0400 Subject: [PATCH] feat(searchResult): not active tool when already actived --- src/app/pages/portal/portal.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/pages/portal/portal.component.ts b/src/app/pages/portal/portal.component.ts index 525b6eefb..1458accd0 100644 --- a/src/app/pages/portal/portal.component.ts +++ b/src/app/pages/portal/portal.component.ts @@ -427,8 +427,9 @@ export class PortalComponent implements OnInit, OnDestroy { // if (this.mediaService.media$.value === Media.Mobile) { // this.closeToastPanel(); // } - - this.toolbox.activateTool('searchResults'); + if (!this.toolbox.activeTool$.value || this.toolbox.activeTool$.value.name !== 'searchResults') { + this.toolbox.activateTool('searchResults'); + } this.openSidenav(); }