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;