Skip to content

Commit 834a719

Browse files
committed
Merge PR #578 into core
1 parent 1f5e5f6 commit 834a719

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/schemaDefaults.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ export function fieldset(name, schema, options, defaultFormDef) {
159159
if (stripNullType(schema.type) === 'object') {
160160
const f = stdFormObj(name, schema, options);
161161
f.type = 'fieldset';
162+
f.key = options.path;
162163
f.items = [];
163164
options.lookup[stringify(options.path)] = f;
164165

@@ -260,8 +261,8 @@ export function defaultForm(schema, defaultSchemaTypes, ignore, globalOptions) {
260261
}
261262
}
262263
});
263-
264-
} else {
264+
}
265+
else {
265266
throw new Error('Not implemented. Only type "object" allowed at root level of schema.');
266267
}
267268
return { form: form, lookup: lookup };

0 commit comments

Comments
 (0)