mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 05:13:29 +00:00
use optional chaining for possibly undefined cipher when selecting only collections (#16886)
This commit is contained in:
@@ -213,7 +213,7 @@ export class VaultItemsComponent<C extends CipherViewLike> {
|
||||
}
|
||||
|
||||
return !this.selection.selected.find(
|
||||
(item) => !item.cipher.archivedDate || item.cipher.organizationId,
|
||||
(item) => !item.cipher?.archivedDate || item.cipher?.organizationId,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user