From 7b8654cafde5f2079d1d8e4600edf0886cf283f5 Mon Sep 17 00:00:00 2001 From: Anukriti Singh Date: Mon, 16 Oct 2023 17:35:34 +0530 Subject: [PATCH] [ACS-5645] different node open issu fixed --- projects/aca-content/src/lib/store/effects/node.effects.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/aca-content/src/lib/store/effects/node.effects.ts b/projects/aca-content/src/lib/store/effects/node.effects.ts index 15e2efd928..daed6c676f 100644 --- a/projects/aca-content/src/lib/store/effects/node.effects.ts +++ b/projects/aca-content/src/lib/store/effects/node.effects.ts @@ -293,7 +293,7 @@ export class NodeEffects { .subscribe((selection) => { if (selection && !selection.isEmpty) { const route = 'personal-files/details'; - this.store.dispatch(new NavigateRouteAction([route, selection.first.entry.id, 'permissions'])); + this.store.dispatch(new NavigateRouteAction([route, selection.last.entry.id, 'permissions'])); } }); } @@ -321,7 +321,7 @@ export class NodeEffects { .subscribe((selection) => { if (selection && !selection.isEmpty) { const route = 'personal-files/details'; - this.router.navigate([route, selection.first.entry.id], { + this.router.navigate([route, selection.last.entry.id], { queryParams: { location: this.router.url }