1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 10:43:35 +00:00

[PM-8524] Fix clone mode so that a new cipher is created

This commit is contained in:
Shane Melton
2024-07-10 15:30:34 -07:00
parent 53a290849a
commit 2d7cbeb96c

View File

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