Skip to content

Commit e78ecc8

Browse files
committed
Proposed fix for issue 590
Reset keyRedaction variable so that the parent's keyRedaction will not be carried onto its children which used to cause the key to be an empty array inside the ngModel builder.
1 parent 01904f1 commit e78ecc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ angular.module('schemaForm').provider('sfBuilder', ['sfPathProvider', function(s
133133
var items = args.fieldFrag.querySelector('[schema-form-array-items]');
134134
if (items) {
135135
state = angular.copy(args.state);
136-
state.keyRedaction = state.keyRedaction || 0;
136+
state.keyRedaction = 0;
137137
state.keyRedaction += args.form.key.length + 1;
138138

139139
// Special case, an array with just one item in it that is not an object.

0 commit comments

Comments
 (0)