From a2b022f50739b38a4afd090d3459f1c5cfe7c518 Mon Sep 17 00:00:00 2001 From: Cilibiu Bogdan Date: Wed, 10 Jul 2019 12:24:29 +0300 Subject: [PATCH] revert changes --- .../layout/app-layout/app-layout.component.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/components/layout/app-layout/app-layout.component.ts b/src/app/components/layout/app-layout/app-layout.component.ts index acce5a4f1..553e3c790 100644 --- a/src/app/components/layout/app-layout/app-layout.component.ts +++ b/src/app/components/layout/app-layout/app-layout.component.ts @@ -44,7 +44,6 @@ import { BreakpointObserver } from '@angular/cdk/layout'; import { AppStore, getCurrentFolder, - ReloadDocumentListAction, SetSelectedNodesAction } from '@alfresco/aca-shared/store'; import { Directionality } from '@angular/cdk/bidi'; @@ -141,14 +140,15 @@ export class AppLayoutComponent implements OnInit, OnDestroy { this.router.events .pipe( filter(event => { - return event instanceof NavigationStart; + return ( + event instanceof NavigationStart && + // search employs reuse route strategy + !event.url.startsWith('/search;') + ); }), takeUntil(this.onDestroy$) ) - .subscribe(() => { - this.store.dispatch(new SetSelectedNodesAction()); - this.store.dispatch(new ReloadDocumentListAction()); - }); + .subscribe(() => this.store.dispatch(new SetSelectedNodesAction([]))); } ngOnDestroy() {