From f998ec190da0de21093c8fccf8ac27fd6c74a951 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 6 Jun 2018 14:45:05 -0400 Subject: [PATCH] dont overwrite name and uri if already set --- src/popup/vault/add-edit.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/popup/vault/add-edit.component.ts b/src/popup/vault/add-edit.component.ts index 335fa0aef9..72247bfd9b 100644 --- a/src/popup/vault/add-edit.component.ts +++ b/src/popup/vault/add-edit.component.ts @@ -56,10 +56,10 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit { await this.load(); if (!this.editMode) { - if (params.name) { + if (params.name && (this.cipher.name == null || this.cipher.name === '')) { this.cipher.name = params.name; } - if (params.uri) { + if (params.uri && (this.cipher.login.uris[0].uri == null || this.cipher.login.uris[0].uri === '')) { this.cipher.login.uris[0].uri = params.uri; } }