diff --git a/js/app/controllers/edit_credential.js b/js/app/controllers/edit_credential.js index d4015c7c..73d5ee21 100644 --- a/js/app/controllers/edit_credential.js +++ b/js/app/controllers/edit_credential.js @@ -329,7 +329,7 @@ delete _credential.shared_key; var _useKey = (key != null); var regex = /(<([^>]+)>)/ig; - if(_credential.description) { + if(_credential.description && _credential.description != "") { _credential.description = _credential.description.replace(regex, ""); } CredentialService.updateCredential(_credential, _useKey).then(function () {