From 6b705e461578366bb7415539a0a8ccb8ba4abeec Mon Sep 17 00:00:00 2001 From: naumov Date: Wed, 20 Nov 2024 19:47:26 +0100 Subject: [PATCH] CB-5919 avoid unnecessary navigations tasks --- webapp/packages/core-projects/src/ProjectsService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/packages/core-projects/src/ProjectsService.ts b/webapp/packages/core-projects/src/ProjectsService.ts index 7007f3bedf..488f7440b0 100644 --- a/webapp/packages/core-projects/src/ProjectsService.ts +++ b/webapp/packages/core-projects/src/ProjectsService.ts @@ -107,7 +107,7 @@ export class ProjectsService extends Dependency { this.getActiveProjectTask = new SyncExecutor(); this.onActiveProjectChange = new Executor(); - this.onActiveProjectChange.before(navigationService.navigationTask); + this.onActiveProjectChange.before(navigationService.navigationTask, undefined, data => !isArraysEqual(data.projects, this.activeProjectIds)); this.userInfoResource.onUserChange.addHandler(() => { this.onActiveProjectChange.execute({