1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-06 05:28:51 +02: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,7 +227,7 @@ export class AddEditComponent implements OnInit {
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[0].uri == null || this.cipher.login.uris[0].uri === '')) {
this.cipher.login.uris = null;