1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Added missing clone mode condition (#72)

This commit is contained in:
Vincent Salucci
2020-02-18 21:17:21 -06:00
committed by GitHub
parent 118bdb20b6
commit f8ada79135

View File

@@ -227,7 +227,7 @@ export class AddEditComponent implements OnInit {
return false; return false;
} }
if (!this.editMode && this.cipher.type === CipherType.Login && if ((!this.editMode || this.cloneMode) && this.cipher.type === CipherType.Login &&
this.cipher.login.uris != null && this.cipher.login.uris.length === 1 && this.cipher.login.uris != null && this.cipher.login.uris.length === 1 &&
(this.cipher.login.uris[0].uri == null || this.cipher.login.uris[0].uri === '')) { (this.cipher.login.uris[0].uri == null || this.cipher.login.uris[0].uri === '')) {
this.cipher.login.uris = null; this.cipher.login.uris = null;