1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 05:13:29 +00:00

[PM-21554] - Creating a new item while editing edits the item (#14770)

* fix adding new cipher while editing a cipher

* don't set updatedCipherView if the cached cipher has an id and the new one doesn't

* fix cipher form config
This commit is contained in:
Jordan Aasen
2025-05-15 10:09:51 -07:00
committed by GitHub
parent ac49e594c1
commit b30faeb62b
2 changed files with 1 additions and 5 deletions

View File

@@ -275,11 +275,6 @@ export class CipherFormComponent implements AfterViewInit, OnInit, OnChanges, Ci
if (this.updatedCipherView.id === cachedCipher.id) {
this.updatedCipherView = cachedCipher;
}
// `id` is null when a cipher is being added
if (this.updatedCipherView.id === null) {
this.updatedCipherView = cachedCipher;
}
}
constructor(