Skip to content

Commit

Permalink
fix variable name bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FateRiddle committed Sep 8, 2020
1 parent f349abc commit db9c0b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export const getValidateList = (val = {}, schema = {}, formData) => {
required.forEach(key => {
const schema = (properties && properties[key]) || {};
const hidden = keyHidden(schema, val);
const _hidden = convertValue(hidden, formData, val);
const _hidden = convertValue(hidden, _formData, val);
const itemValue = val && val[key];
if (isEmptyValue(itemValue, schema) && !_hidden) {
checkList.push(key);
Expand All @@ -201,7 +201,7 @@ export const getValidateList = (val = {}, schema = {}, formData) => {
const value = val[key];
const schema = properties[key] || {};
const hidden = keyHidden(schema, val);
const _hidden = convertValue(hidden, formData, val);
const _hidden = convertValue(hidden, _formData, val);
if (!_hidden) {
const list = dealTypeValidate(key, value, schema, _formData);
checkList.push(...list);
Expand Down

0 comments on commit db9c0b2

Please sign in to comment.