From 6aff1c49989b42c9b300b49f9edcf66b7b6d43d8 Mon Sep 17 00:00:00 2001 From: Graham Walker Date: Wed, 12 Nov 2025 07:42:25 -0600 Subject: [PATCH] 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. --- .../services/member-access-report.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bitwarden_license/bit-web/src/app/dirt/reports/member-access-report/services/member-access-report.service.ts b/bitwarden_license/bit-web/src/app/dirt/reports/member-access-report/services/member-access-report.service.ts index f6d1139f619..3bd74391419 100644 --- a/bitwarden_license/bit-web/src/app/dirt/reports/member-access-report/services/member-access-report.service.ts +++ b/bitwarden_license/bit-web/src/app/dirt/reports/member-access-report/services/member-access-report.service.ts @@ -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(