From 970427e42508c10672bd3609a1b5f388a69476dd Mon Sep 17 00:00:00 2001 From: Nick Krantz Date: Wed, 25 Sep 2024 14:29:31 -0500 Subject: [PATCH] refactor comments --- apps/web/src/app/vault/org-vault/vault.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 77caa32c47a..a1d07345352 100644 --- a/apps/web/src/app/vault/org-vault/vault.component.ts +++ b/apps/web/src/app/vault/org-vault/vault.component.ts @@ -899,12 +899,11 @@ export class VaultComponent implements OnInit, OnDestroy { const result: AddEditCipherDialogCloseResult = await firstValueFrom(dialogRef.closed); - // View the cipher if the dialog was closed by editing the cipher. + // When the cipher was edited, refresh the vault view if (result?.action === AddEditCipherDialogResult.Edited) { this.refresh(); } - // Navigate to the vault if the dialog was closed by any other action. this.go({ cipherId: null, itemId: null, action: null }); }