CB-5919 avoid unnecessary navigations tasks (#3090)

Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
This commit is contained in:
alex
2024-11-21 17:27:25 +03:00
committed by GitHub
co-authored by Evgenia
parent 94aaf7bf5e
commit 56b9eab16f
@@ -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({