1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-24 00:23:17 +00:00

add back optional chains

This commit is contained in:
jaasen-livefront
2026-02-11 09:45:41 -08:00
parent 6635e42377
commit f4d7f5660c
2 changed files with 3 additions and 3 deletions

View File

@@ -962,7 +962,7 @@ export class VaultComponent implements OnInit, OnDestroy {
await this.editCipher(cipher, true);
}
restore = async (c: CipherViewLike) => {
restore = async (c: CipherViewLike): Promise<void> => {
const organization = await firstValueFrom(this.organization$);
if (!CipherViewLikeUtils.isDeleted(c)) {
return;

View File

@@ -467,7 +467,7 @@ export class VaultComponent<C extends CipherViewLike> implements OnInit, OnDestr
collections,
filter.collectionId,
);
searchableCollectionNodes = selectedCollection?.children;
searchableCollectionNodes = selectedCollection?.children ?? [];
}
if (await this.searchService.isSearchable(activeUserId, searchText)) {
@@ -611,7 +611,7 @@ export class VaultComponent<C extends CipherViewLike> implements OnInit, OnDestr
);
this.showBulkMove = filter.type !== "trash";
this.isEmpty = collections.length === 0 && ciphers.length === 0;
this.isEmpty = collections?.length === 0 && ciphers?.length === 0;
this.performingInitialLoad = false;
this.refreshing = false;