We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a02b9d commit f2feb39Copy full SHA for f2feb39
1 file changed
src/index.ts
@@ -201,7 +201,7 @@ class Schema {
201
if (!options.suppressWarning && errorList.length) {
202
Schema.warning('async-validator:', errorList);
203
}
204
- if (errorList.length && rule.message !== undefined) {
+ if (errorList.length && rule.message !== undefined && rule.message !== null) {
205
errorList = [].concat(rule.message);
206
207
0 commit comments