We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ee6e45 commit 42426ddCopy full SHA for 42426dd
src/data.js
@@ -40,11 +40,19 @@ export function getBlankArray(schema) {
40
else if (type === 'dict')
41
type = 'object';
42
43
- if (type === 'array')
+ if (type === 'array') {
44
items.push(getBlankArray(schema.items))
45
- else if (type === 'object')
+ return items;
46
+ }
47
+ else if (type === 'object') {
48
items.push(getBlankObject(schema.items));
- else if (type === 'boolean')
49
50
51
+
52
+ if (schema.items.widget === 'multiselect')
53
54
55
+ if (type === 'boolean')
56
items.push(schema.items.default || false);
57
else if (type === 'integer' || type === 'number')
58
items.push(schema.items.default || null);
0 commit comments