From 25bd2a4c347719aa641378db43591141ad9733a9 Mon Sep 17 00:00:00 2001 From: Nick Krantz <125900171+nick-livefront@users.noreply.github.com> Date: Tue, 16 Dec 2025 12:08:03 -0600 Subject: [PATCH] move archive check into conditional to avoid undefined error (#18000) --- .../vault-item-dialog/vault-item-dialog.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/src/app/vault/components/vault-item-dialog/vault-item-dialog.component.ts b/apps/web/src/app/vault/components/vault-item-dialog/vault-item-dialog.component.ts index d7b9ee97123..15e62eaf93e 100644 --- a/apps/web/src/app/vault/components/vault-item-dialog/vault-item-dialog.component.ts +++ b/apps/web/src/app/vault/components/vault-item-dialog/vault-item-dialog.component.ts @@ -253,7 +253,7 @@ export class VaultItemDialogComponent implements OnInit, OnDestroy { protected showRestore: boolean; - protected cipherIsArchived: boolean; + protected cipherIsArchived: boolean = false; protected get loadingForm() { return this.loadForm && !this.formReady; @@ -350,6 +350,8 @@ export class VaultItemDialogComponent implements OnInit, OnDestroy { return; } + this.cipherIsArchived = this.cipher.isArchived; + this.collections = this.formConfig.collections.filter((c) => this.cipher.collectionIds?.includes(c.id), ); @@ -375,7 +377,6 @@ export class VaultItemDialogComponent implements OnInit, OnDestroy { this.filter = await firstValueFrom(this.routedVaultFilterService.filter$); this.showRestore = await this.canUserRestore(); - this.cipherIsArchived = this.cipher.isArchived; this.performingInitialLoad = false; }