From 718658e8373addea88dbe6edcb65195f9fd6edef Mon Sep 17 00:00:00 2001 From: Owen Conti Date: Mon, 3 Jul 2017 18:12:39 -0600 Subject: [PATCH] Fix for non-required inputs --- src/core/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/utils.js b/src/core/utils.js index ddb58dc4..448a8e9c 100644 --- a/src/core/utils.js +++ b/src/core/utils.js @@ -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" } }