1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

remove duplicate check

This commit is contained in:
Nick Krantz
2024-09-25 14:26:38 -05:00
parent 67e43059da
commit 867bff99e5

View File

@@ -885,7 +885,7 @@ export class VaultComponent implements OnInit, OnDestroy {
/**
* Edit a cipher using the new AddEditCipherDialogV2 component.
* Only to be used behind the ExtenstionRefresh feature flag.
* Only to be used behind the ExtensionRefresh feature flag.
*/
private async editCipherIdV2(cipherId: CipherId, cloneCipher: boolean) {
const cipherFormConfig = await this.cipherFormConfigService.buildConfig(
@@ -899,11 +899,6 @@ export class VaultComponent implements OnInit, OnDestroy {
const result: AddEditCipherDialogCloseResult = await firstValueFrom(dialogRef.closed);
// Refresh the vault if the dialog was closed by adding, editing, or deleting a cipher.
if (result?.action === AddEditCipherDialogResult.Edited) {
this.refresh();
}
// View the cipher if the dialog was closed by editing the cipher.
if (result?.action === AddEditCipherDialogResult.Edited) {
this.refresh();