From 0719182c9a32ddaf941eb885a6b285cd956a5c57 Mon Sep 17 00:00:00 2001 From: Shane Melton Date: Fri, 7 Oct 2022 15:37:30 -0700 Subject: [PATCH] [EC-86] Clear collectionMap before populating it with new collections --- apps/web/src/app/organizations/manage/groups.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/src/app/organizations/manage/groups.component.ts b/apps/web/src/app/organizations/manage/groups.component.ts index 2ac7c645aab..f9052a6a489 100644 --- a/apps/web/src/app/organizations/manage/groups.component.ts +++ b/apps/web/src/app/organizations/manage/groups.component.ts @@ -159,6 +159,7 @@ export class GroupsComponent implements OnInit, OnDestroy { const decryptedCollections = await this.collectionService.decryptMany(collections); // Convert to an object using collection Ids as keys for faster name lookups + this.collectionMap = {}; decryptedCollections.forEach((c) => (this.collectionMap[c.id] = c)); }