mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 05:13:29 +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 {
|
private hasPersonalItems(): boolean {
|
||||||
return this.selection.selected.some(({ cipher }) => cipher?.organizationId === null);
|
return this.selection.selected.some(({ cipher }) => !cipher?.organizationId);
|
||||||
}
|
}
|
||||||
|
|
||||||
private allCiphersHaveEditAccess(): boolean {
|
private allCiphersHaveEditAccess(): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user