mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
add optional chaining to possibly nullish orgKeys (#15172)
This commit is contained in:
@@ -448,12 +448,12 @@ export class CipherService implements CipherServiceAbstraction {
|
|||||||
if (await this.configService.getFeatureFlag(FeatureFlag.PM4154_BulkEncryptionService)) {
|
if (await this.configService.getFeatureFlag(FeatureFlag.PM4154_BulkEncryptionService)) {
|
||||||
return await this.bulkEncryptService.decryptItems(
|
return await this.bulkEncryptService.decryptItems(
|
||||||
groupedCiphers,
|
groupedCiphers,
|
||||||
keys.orgKeys[orgId as OrganizationId] ?? keys.userKey,
|
keys.orgKeys?.[orgId as OrganizationId] ?? keys.userKey,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return await this.encryptService.decryptItems(
|
return await this.encryptService.decryptItems(
|
||||||
groupedCiphers,
|
groupedCiphers,
|
||||||
keys.orgKeys[orgId as OrganizationId] ?? keys.userKey,
|
keys.orgKeys?.[orgId as OrganizationId] ?? keys.userKey,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user