1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-20 19:34:03 +00:00

[EC-86] Clear collectionMap before populating it with new collections

This commit is contained in:
Shane Melton
2022-10-07 15:37:30 -07:00
parent ae42ebeb3f
commit 0719182c9a

View File

@@ -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));
}