mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
remove duplicate check
This commit is contained in:
@@ -885,7 +885,7 @@ export class VaultComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Edit a cipher using the new AddEditCipherDialogV2 component.
|
* 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) {
|
private async editCipherIdV2(cipherId: CipherId, cloneCipher: boolean) {
|
||||||
const cipherFormConfig = await this.cipherFormConfigService.buildConfig(
|
const cipherFormConfig = await this.cipherFormConfigService.buildConfig(
|
||||||
@@ -899,11 +899,6 @@ export class VaultComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
const result: AddEditCipherDialogCloseResult = await firstValueFrom(dialogRef.closed);
|
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.
|
// View the cipher if the dialog was closed by editing the cipher.
|
||||||
if (result?.action === AddEditCipherDialogResult.Edited) {
|
if (result?.action === AddEditCipherDialogResult.Edited) {
|
||||||
this.refresh();
|
this.refresh();
|
||||||
|
|||||||
Reference in New Issue
Block a user