Skip to content

Commit

Permalink
fix: do not error when File is not defined (#1253)
Browse files Browse the repository at this point in the history
  • Loading branch information
epicfaace authored Apr 12, 2019
1 parent 06b5e2f commit ac397ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export function getUiOptions(uiSchema) {
}

export function isObject(thing) {
if (thing instanceof File) {
if (typeof File !== "undefined" && thing instanceof File) {
return false;
}
return typeof thing === "object" && thing !== null && !Array.isArray(thing);
Expand Down

0 comments on commit ac397ca

Please sign in to comment.