From 1b112dd887953946c60049d2282d1c1630666b4c Mon Sep 17 00:00:00 2001 From: FrancescoMolinaro Date: Wed, 23 Apr 2025 15:47:01 +0200 Subject: [PATCH] [DURACOM-350] prevent unnecessary reload --- src/app/shared/mydspace-actions/mydspace-actions.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/app/shared/mydspace-actions/mydspace-actions.ts b/src/app/shared/mydspace-actions/mydspace-actions.ts index 1a5ebbcc8c..73caf4f30c 100644 --- a/src/app/shared/mydspace-actions/mydspace-actions.ts +++ b/src/app/shared/mydspace-actions/mydspace-actions.ts @@ -107,15 +107,19 @@ export abstract class MyDSpaceActionsComponent this.requestService.removeByHrefSubstring(cachedHref)), - ).subscribe(() => this.router.navigateByUrl(url)); + ).subscribe(() => { + if (shouldNavigate) { + this.router.navigateByUrl(url); + } + }); } /**