Skip to content

Commit f0b4b6b

Browse files
committed
Add minimal backstop for #3414
1 parent 5c70134 commit f0b4b6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,9 @@ export const validateParam = (param, isXml) => {
479479
let arrayCheck = type === "array" && Array.isArray(value) && !value.length
480480
let listCheck = type === "array" && Im.List.isList(value) && !value.count()
481481
let fileCheck = type === "file" && !(value instanceof win.File)
482+
let nullUndefinedCheck = value === null || value === undefined
482483

483-
if ( required && (stringCheck || arrayCheck || listCheck || fileCheck) ) {
484+
if ( required && (stringCheck || arrayCheck || listCheck || fileCheck || nullUndefinedCheck) ) {
484485
errors.push("Required field is not provided")
485486
return errors
486487
}

0 commit comments

Comments
 (0)