fix(ncform): wrong validation

This commit is contained in:
Dmitry Nagibin
2022-11-18 14:03:02 +03:00
parent 1f2ccae22c
commit deb4285408
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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") {
+1 -1
View File
@@ -55,7 +55,7 @@ class RegularValidation {
});
if (i < keys.length - 1) {
resolve(nextValidate(i + 1));
return resolve(nextValidate(i + 1));
} else {
resolve({
result: true,