Add minimal backstop for #3414

This commit is contained in:
Kyle Shockey
2017-07-24 13:13:18 -07:00
parent 5c70134f53
commit f0b4b6bac1

View File

@@ -479,8 +479,9 @@ export const validateParam = (param, isXml) => {
let arrayCheck = type === "array" && Array.isArray(value) && !value.length
let listCheck = type === "array" && Im.List.isList(value) && !value.count()
let fileCheck = type === "file" && !(value instanceof win.File)
let nullUndefinedCheck = value === null || value === undefined
if ( required && (stringCheck || arrayCheck || listCheck || fileCheck) ) {
if ( required && (stringCheck || arrayCheck || listCheck || fileCheck || nullUndefinedCheck) ) {
errors.push("Required field is not provided")
return errors
}