1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +00:00

[PM-21022] Remove fido2Credentials when cloning a cipher (#14573)

* remove fido2Credentials from cipherView when cloning a cipher

* add check for login on cloning cipher
This commit is contained in:
Nick Krantz
2025-05-02 10:11:29 -05:00
committed by GitHub
parent d9fee1d1ad
commit ebe3e98a1f
2 changed files with 41 additions and 2 deletions

View File

@@ -243,6 +243,10 @@ export class CipherFormComponent implements AfterViewInit, OnInit, OnChanges, Ci
if (this.config.mode === "clone") {
this.updatedCipherView.id = null;
if (this.updatedCipherView.login) {
this.updatedCipherView.login.fido2Credentials = null;
}
}
} else {
this.updatedCipherView.type = this.config.cipherType;