File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ export function getBlankObject(schema) {
1717 else if ( type === 'object' )
1818 keys [ key ] = getBlankObject ( value ) ;
1919 else if ( type === 'boolean' )
20- keys [ key ] = schema . default || false ;
20+ keys [ key ] = value . default || false ;
2121 else if ( type === 'integer' || type === 'number' )
22- keys [ key ] = schema . default || null ;
22+ keys [ key ] = value . default || null ;
2323 else // string etc.
24- keys [ key ] = schema . default || '' ;
24+ keys [ key ] = value . default || '' ;
2525 }
2626
2727 return keys ;
@@ -42,11 +42,11 @@ export function getBlankArray(schema) {
4242 else if ( type === 'object' )
4343 items . push ( getBlankObject ( schema . items ) ) ;
4444 else if ( type === 'boolean' )
45- items . push ( schema . default || false ) ;
45+ items . push ( schema . items . default || false ) ;
4646 else if ( type === 'integer' || type === 'number' )
47- items . push ( schema . default || null ) ;
47+ items . push ( schema . items . default || null ) ;
4848 else // string, etc.
49- items . push ( schema . default || '' ) ;
49+ items . push ( schema . items . default || '' ) ;
5050
5151 return items ;
5252}
You can’t perform that action at this time.
0 commit comments