mirror of
https://github.com/vxcontrol/ncform.git
synced 2026-06-30 22:17:58 -04:00
fix(ncform): wrong validation
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import _get from "lodash-es/get";
|
||||
import _map from "lodash-es/map";
|
||||
import _uniq from "lodash-es/uniq";
|
||||
import _isNil from "lodash-es/isnil";
|
||||
import _isNil from "lodash-es/isNil";
|
||||
import _kebabCase from "lodash-es/kebabCase";
|
||||
import _mergeWith from "lodash-es/mergewith";
|
||||
import _mergeWith from "lodash-es/mergeWith";
|
||||
import extend from "extend";
|
||||
|
||||
const ncformUtils = {
|
||||
@@ -195,7 +195,7 @@ const ncformUtils = {
|
||||
});
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
for (let property in obj) {
|
||||
if (obj.hasOwnProperty(property)) {
|
||||
if (typeof obj[property] === "object") {
|
||||
|
||||
@@ -55,7 +55,7 @@ class RegularValidation {
|
||||
});
|
||||
|
||||
if (i < keys.length - 1) {
|
||||
resolve(nextValidate(i + 1));
|
||||
return resolve(nextValidate(i + 1));
|
||||
} else {
|
||||
resolve({
|
||||
result: true,
|
||||
|
||||
Reference in New Issue
Block a user