mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-26 17:08:33 +01:00
remove empty uri on add
This commit is contained in:
parent
5608f11925
commit
e883dfdaac
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user