From 2d7cbeb96c9f4f0b4724b309a79423380e83268a Mon Sep 17 00:00:00 2001 From: Shane Melton Date: Wed, 10 Jul 2024 15:30:34 -0700 Subject: [PATCH] [PM-8524] Fix clone mode so that a new cipher is created --- .../vault/src/cipher-form/components/cipher-form.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/vault/src/cipher-form/components/cipher-form.component.ts b/libs/vault/src/cipher-form/components/cipher-form.component.ts index c0260e0fc7c..0c38b995aa1 100644 --- a/libs/vault/src/cipher-form/components/cipher-form.component.ts +++ b/libs/vault/src/cipher-form/components/cipher-form.component.ts @@ -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; }