1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

use bang operator to check for the presence of an organizationId. (#15802)

strict equality with `null` doesn't work with the SDK as `undefined` is populated rather than `null`
This commit is contained in:
Nick Krantz
2025-07-28 13:05:07 -05:00
committed by GitHub
parent b48d7d4b97
commit 5410e42322

View File

@@ -566,7 +566,7 @@ export class VaultItemsComponent<C extends CipherViewLike> {
}
private hasPersonalItems(): boolean {
return this.selection.selected.some(({ cipher }) => cipher?.organizationId === null);
return this.selection.selected.some(({ cipher }) => !cipher?.organizationId);
}
private allCiphersHaveEditAccess(): boolean {