mirror of
https://github.com/bitwarden/browser
synced 2026-02-24 08:33:29 +00:00
check for falsy orgnanizationId in cipher bulk collection assignment (#19088)
This commit is contained in:
@@ -1205,8 +1205,7 @@ export class VaultComponent<C extends CipherViewLike> implements OnInit, OnDestr
|
||||
|
||||
let availableCollections: CollectionView[] = [];
|
||||
const orgId =
|
||||
this.activeFilter.organizationId ||
|
||||
ciphers.find((c) => c.organizationId !== undefined)?.organizationId;
|
||||
this.activeFilter.organizationId || ciphers.find((c) => !!c.organizationId)?.organizationId;
|
||||
|
||||
if (orgId && orgId !== "MyVault") {
|
||||
const organization = this.allOrganizations.find((o) => o.id === orgId);
|
||||
|
||||
Reference in New Issue
Block a user