diff --git a/packages/canner/src/hocs/validation.js b/packages/canner/src/hocs/validation.js index 29d55dba..e47f7300 100644 --- a/packages/canner/src/hocs/validation.js +++ b/packages/canner/src/hocs/validation.js @@ -130,7 +130,7 @@ export default function withValidation(Com: React.ComponentType<*>) { if(checkSchema(schema)) { promiseQueue.pop(_schemaValidation(schema, errorMessage)(value)); } - if(checkValidator(validator)) { + if(value && checkValidator(validator)) { promiseQueue.pop(_customizedValidator(validator)(value)); } }