1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

PM-23810 [error: cannot decrypt] shows in Member Access Report (#17103)

* PM-23810 fixing ux issue for member access report export csv

* PM-23810 merged in new KM changes and filter nulls within the collectionName array

* PM-23810 fixing type error

* PM-23810 removing unit test as it was based on a previous solution.
This commit is contained in:
Graham Walker
2025-11-12 07:42:25 -06:00
committed by GitHub
parent 7bac09503d
commit 6aff1c4998

View File

@@ -94,7 +94,9 @@ export class MemberAccessReportService {
const memberAccessReports = await this.reportApiService.getMemberAccessData(organizationId);
const collectionNames = memberAccessReports.map((item) => item.collectionName.encryptedString);
const collectionNameMap = new Map(collectionNames.map((col) => [col, ""]));
const collectionNameMap = new Map(
collectionNames.filter((col) => col !== null).map((col) => [col, ""]),
);
for await (const key of collectionNameMap.keys()) {
const encryptedCollectionName = new EncString(key);
const collectionName = await this.encryptService.decryptString(