mirror of
https://github.com/nextcloud/passman.git
synced 2024-11-11 01:34:12 +08:00
Check if description is not empty
This commit is contained in:
parent
c8749bfc97
commit
9f145e3131
1 changed files with 1 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue