File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,6 @@ angular.module('schemaForm').provider('schemaForm',
286286 options = options || { } ;
287287
288288 var stdForm = service . defaults ( schema , ignore , options ) ;
289-
290289 //simple case, we have a "*", just put the stdForm there
291290 var idx = form . indexOf ( '*' ) ;
292291 if ( idx !== - 1 ) {
@@ -371,7 +370,7 @@ angular.module('schemaForm').provider('schemaForm',
371370 if ( schema . type === 'object' ) {
372371 angular . forEach ( schema . properties , function ( v , k ) {
373372 if ( ignore [ k ] !== true ) {
374- var required = schema . required && schema . required . indexOf ( k [ k . length - 1 ] ) !== - 1 ;
373+ var required = schema . required && schema . required . indexOf ( k ) !== - 1 ;
375374 var def = defaultFormDefinition ( k , v , {
376375 path : [ k ] , // Path to this property in bracket notation.
377376 lookup : lookup , // Extra map to register with. Optimization for merger.
You can’t perform that action at this time.
0 commit comments