This website works better with JavaScript.
Home
Explore
Help
Sign In
bubblev
/
swagger-ui
Watch
4
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fix for non-required inputs
bubble
Owen Conti
7 years ago
parent
dd1b87e3d7
commit
718658e837
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/core/utils.js
+ 1
- 1
src/core/utils.js
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"
}
}
Write
Preview
Loading…
Cancel
Save