1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-13 01:58:44 +02:00

remove empty uri on add

This commit is contained in:
Kyle Spearrin 2018-04-14 00:16:12 -04:00
parent 5608f11925
commit e883dfdaac

View File

@ -154,6 +154,11 @@ export class AddEditComponent {
return false; return false;
} }
if (!this.editMode && this.cipher.type == CipherType.Login && this.cipher.login.uris.length === 1 &&
(this.cipher.login.uris[0].uri == null || this.cipher.login.uris[0].uri === '')) {
this.cipher.login.uris = null;
}
const cipher = await this.cipherService.encrypt(this.cipher); const cipher = await this.cipherService.encrypt(this.cipher);
try { try {