1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-11-14 17:35:35 +01:00

Fix form submission button for one or more Wi-Fi modules.

This commit is contained in:
Aleksandr Gumroian 2020-06-23 16:46:51 +02:00
parent 1e95bff7ff
commit 57f1ccced8
No known key found for this signature in database
GPG Key ID: 9E77849C64F0A733

View File

@ -89,5 +89,5 @@ function validator(formData) {
return errors;
},
);
return JSON.stringify(formErrors) === "[{},{}]" ? null : formErrors;
return JSON.stringify(formErrors).match(/\[[{},?]+\]/) ? null : formErrors;
}