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