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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user