Skip to content

Commit

Permalink
Check for function existence
Browse files Browse the repository at this point in the history
  • Loading branch information
psamim authored Apr 15, 2019
1 parent caadc98 commit 04d8e8a
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 @@ -457,7 +457,7 @@ const merge = (schema, form, ignore, options, readonly) => {

const stdForm = getDefaults(schema, ignore, options);
// simple case, we have a "*", just put the stdForm there
const idx = form.indexOf("*");
const idx = form.indexOf && form.indexOf("*") || -1;
if (idx !== -1) {
form = form
.slice(0, idx)
Expand Down

0 comments on commit 04d8e8a

Please sign in to comment.