From ac397cae49a9a8e4bd78617eb70e563e21dc7a4f Mon Sep 17 00:00:00 2001 From: Ashwin Ramaswami Date: Fri, 12 Apr 2019 08:43:01 -0700 Subject: [PATCH] fix: do not error when File is not defined (#1253) --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index ce13634b5d..a4b2c8af15 100644 --- a/src/utils.js +++ b/src/utils.js @@ -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);