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',
286
286
options = options || { } ;
287
287
288
288
var stdForm = service . defaults ( schema , ignore , options ) ;
289
-
290
289
//simple case, we have a "*", just put the stdForm there
291
290
var idx = form . indexOf ( '*' ) ;
292
291
if ( idx !== - 1 ) {
@@ -371,7 +370,7 @@ angular.module('schemaForm').provider('schemaForm',
371
370
if ( schema . type === 'object' ) {
372
371
angular . forEach ( schema . properties , function ( v , k ) {
373
372
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 ;
375
374
var def = defaultFormDefinition ( k , v , {
376
375
path : [ k ] , // Path to this property in bracket notation.
377
376
lookup : lookup , // Extra map to register with. Optimization for merger.
You can’t perform that action at this time.
0 commit comments