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(