1
0
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:
Jordan Aasen
2026-02-20 13:41:47 -08:00
committed by GitHub
parent 8c6a5775a9
commit c01ce9f99d

View File

@@ -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);