1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +00:00

add optional chaining to possibly nullish orgKeys (#15172)

This commit is contained in:
Jonathan Prusik
2025-06-12 16:15:50 -04:00
committed by GitHub
parent 3881192753
commit 93ab8b7ec1

View File

@@ -448,12 +448,12 @@ export class CipherService implements CipherServiceAbstraction {
if (await this.configService.getFeatureFlag(FeatureFlag.PM4154_BulkEncryptionService)) {
return await this.bulkEncryptService.decryptItems(
groupedCiphers,
keys.orgKeys[orgId as OrganizationId] ?? keys.userKey,
keys.orgKeys?.[orgId as OrganizationId] ?? keys.userKey,
);
} else {
return await this.encryptService.decryptItems(
groupedCiphers,
keys.orgKeys[orgId as OrganizationId] ?? keys.userKey,
keys.orgKeys?.[orgId as OrganizationId] ?? keys.userKey,
);
}
}),