From 340e377b37cc751100e4108c9fb20ca0e7fbe9c6 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 24 Oct 2018 22:09:36 -0400 Subject: [PATCH] filter collections for current org --- src/app/organizations/manage/collections.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/organizations/manage/collections.component.ts b/src/app/organizations/manage/collections.component.ts index 79db2c2242..067bdbd716 100644 --- a/src/app/organizations/manage/collections.component.ts +++ b/src/app/organizations/manage/collections.component.ts @@ -68,7 +68,7 @@ export class CollectionsComponent implements OnInit { } else { response = await this.apiService.getUserCollections(); } - const collections = response.data.map((r) => + const collections = response.data.filter((c) => c.organizationId === this.organizationId).map((r) => new Collection(new CollectionData(r as CollectionDetailsResponse))); this.collections = await this.collectionService.decryptMany(collections); this.loading = false;