Fix for non-required inputs

This commit is contained in:
Owen Conti
2017-07-03 18:12:39 -06:00
parent dd1b87e3d7
commit 718658e837

View File

@@ -463,7 +463,7 @@ export const validateInteger = ( val ) => {
}
export const validateFile = ( val ) => {
if ( !(val instanceof win.File) ) {
if ( val && !(val instanceof win.File) ) {
return "Value must be a file"
}
}