1
0
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:
Nick Krantz
2025-10-15 09:49:24 -05:00
committed by GitHub
parent 0713f90a06
commit c782de57a3
2 changed files with 140 additions and 1 deletions

View File

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