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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user