From b884caa818835d83f7bdd88f72d7095a13b12e82 Mon Sep 17 00:00:00 2001 From: Nathan Franklin Date: Tue, 3 Oct 2023 11:51:38 -0500 Subject: [PATCH 1/2] Fix projects listing from DS --- .../src/app/components/file-browser/file-browser.component.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/angular/src/app/components/file-browser/file-browser.component.ts b/angular/src/app/components/file-browser/file-browser.component.ts index f9dad628..4f02eb31 100644 --- a/angular/src/app/components/file-browser/file-browser.component.ts +++ b/angular/src/app/components/file-browser/file-browser.component.ts @@ -58,7 +58,6 @@ export class FileBrowserComponent implements OnInit { // TODO: change those hard coded systemIds to environment vars or some sort of config // wait on the currentUser, systems and projects to resolve combineLatest([this.authService.currentUser, this.agaveSystemsService.systems, this.agaveSystemsService.projects]) - .pipe(take(1)) .subscribe(([user, systems, projects]) => { this.myDataSystem = systems.find((sys) => sys.id === 'designsafe.storage.default'); this.communityDataSystem = systems.find((sys) => sys.id === 'designsafe.storage.community'); From 12f075b11d4df96cabbed11f143dceacad7bcb4d Mon Sep 17 00:00:00 2001 From: Nathan Franklin Date: Tue, 3 Oct 2023 11:58:00 -0500 Subject: [PATCH 2/2] Fix linting --- .../app/components/file-browser/file-browser.component.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/angular/src/app/components/file-browser/file-browser.component.ts b/angular/src/app/components/file-browser/file-browser.component.ts index 4f02eb31..ee5564ee 100644 --- a/angular/src/app/components/file-browser/file-browser.component.ts +++ b/angular/src/app/components/file-browser/file-browser.component.ts @@ -57,8 +57,8 @@ export class FileBrowserComponent implements OnInit { // TODO: change those hard coded systemIds to environment vars or some sort of config // wait on the currentUser, systems and projects to resolve - combineLatest([this.authService.currentUser, this.agaveSystemsService.systems, this.agaveSystemsService.projects]) - .subscribe(([user, systems, projects]) => { + combineLatest([this.authService.currentUser, this.agaveSystemsService.systems, this.agaveSystemsService.projects]).subscribe( + ([user, systems, projects]) => { this.myDataSystem = systems.find((sys) => sys.id === 'designsafe.storage.default'); this.communityDataSystem = systems.find((sys) => sys.id === 'designsafe.storage.community'); this.publishedDataSystem = systems.find((sys) => sys.id === 'designsafe.storage.published'); @@ -72,7 +72,8 @@ export class FileBrowserComponent implements OnInit { path: this.currentUser.username, }; this.browse(init); - }); + } + ); } selectSystem(system: SystemSummary): void {