diff --git a/apps/web/src/app/vault/org-vault/vault.component.ts b/apps/web/src/app/vault/org-vault/vault.component.ts index 32f7f0eba5..a2d8c29cba 100644 --- a/apps/web/src/app/vault/org-vault/vault.component.ts +++ b/apps/web/src/app/vault/org-vault/vault.component.ts @@ -886,13 +886,13 @@ 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(); this.go({ cipherId: null, itemId: null, action: null }); } // 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 }); } }