remove empty uri on add

This commit is contained in:
Kyle Spearrin 2018-04-14 00:16:12 -04:00
parent 5608f11925
commit e883dfdaac
1 changed files with 5 additions and 0 deletions

View File

@ -154,6 +154,11 @@ export class AddEditComponent {
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);
try {