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 5c70134 commit f0b4b6bCopy full SHA for f0b4b6b
src/core/utils.js
@@ -479,8 +479,9 @@ export const validateParam = (param, isXml) => {
479
let arrayCheck = type === "array" && Array.isArray(value) && !value.length
480
let listCheck = type === "array" && Im.List.isList(value) && !value.count()
481
let fileCheck = type === "file" && !(value instanceof win.File)
482
+ let nullUndefinedCheck = value === null || value === undefined
483
- if ( required && (stringCheck || arrayCheck || listCheck || fileCheck) ) {
484
+ if ( required && (stringCheck || arrayCheck || listCheck || fileCheck || nullUndefinedCheck) ) {
485
errors.push("Required field is not provided")
486
return errors
487
}
0 commit comments