Check if description is not empty

This commit is contained in:
brantje 2016-12-19 14:42:51 +01:00
parent c8749bfc97
commit 9f145e3131
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F

View file

@ -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 () {