From f4d7f5660c2cc1c7ed77c0d7df32148441048ecb Mon Sep 17 00:00:00 2001 From: jaasen-livefront Date: Wed, 11 Feb 2026 09:45:41 -0800 Subject: [PATCH] add back optional chains --- .../organizations/collections/vault.component.ts | 2 +- apps/web/src/app/vault/individual-vault/vault.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/src/app/admin-console/organizations/collections/vault.component.ts b/apps/web/src/app/admin-console/organizations/collections/vault.component.ts index d383937e98a..a641116f4de 100644 --- a/apps/web/src/app/admin-console/organizations/collections/vault.component.ts +++ b/apps/web/src/app/admin-console/organizations/collections/vault.component.ts @@ -962,7 +962,7 @@ export class VaultComponent implements OnInit, OnDestroy { await this.editCipher(cipher, true); } - restore = async (c: CipherViewLike) => { + restore = async (c: CipherViewLike): Promise => { const organization = await firstValueFrom(this.organization$); if (!CipherViewLikeUtils.isDeleted(c)) { return; diff --git a/apps/web/src/app/vault/individual-vault/vault.component.ts b/apps/web/src/app/vault/individual-vault/vault.component.ts index 6fbc47a0f85..a32de1955ce 100644 --- a/apps/web/src/app/vault/individual-vault/vault.component.ts +++ b/apps/web/src/app/vault/individual-vault/vault.component.ts @@ -467,7 +467,7 @@ export class VaultComponent 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 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;