Skip to content

Commit 04d8e8a

Browse files
authored
Check for function existence
1 parent caadc98 commit 04d8e8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ const merge = (schema, form, ignore, options, readonly) => {
457457

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

0 commit comments

Comments
 (0)