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 de945d5224..d47a8be252 100644 --- a/apps/web/src/app/vault/individual-vault/vault.component.ts +++ b/apps/web/src/app/vault/individual-vault/vault.component.ts @@ -718,12 +718,12 @@ export class VaultComponent implements OnInit, OnDestroy { const result: ViewCipherDialogCloseResult = await lastValueFrom(dialogRef.closed); // If the dialog was closed by deleting the cipher, refresh the vault. - if (result.action === ViewCipherDialogResult.deleted) { + if (result?.action === ViewCipherDialogResult.deleted) { this.refresh(); } // If the dialog was closed by any other action (close button, escape key, etc), navigate back to the vault. - if (!result.action) { + if (!result?.action) { this.go({ cipherId: null, itemId: null, action: null }); } }