1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-12-24 00:01:36 +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 errors;
}, },
); );
return JSON.stringify(formErrors) === "[{},{}]" ? null : formErrors; return JSON.stringify(formErrors).match(/\[[{},?]+\]/) ? null : formErrors;
} }