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