mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-04 18:54:29 +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;
|
delete _credential.shared_key;
|
||||||
var _useKey = (key != null);
|
var _useKey = (key != null);
|
||||||
var regex = /(<([^>]+)>)/ig;
|
var regex = /(<([^>]+)>)/ig;
|
||||||
if(_credential.description) {
|
if(_credential.description && _credential.description != "") {
|
||||||
_credential.description = _credential.description.replace(regex, "");
|
_credential.description = _credential.description.replace(regex, "");
|
||||||
}
|
}
|
||||||
CredentialService.updateCredential(_credential, _useKey).then(function () {
|
CredentialService.updateCredential(_credential, _useKey).then(function () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue