Skip to content

Commit 1d25147

Browse files
committed
Update list variable when watching for array changes
1 parent e2734c8 commit 1d25147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directives/array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ angular.module('schemaForm').directive('sfArray', ['sfSelect', 'schemaForm', 'sf
4343
// the outside so let's watch for that. We use an ordinary watch since the only case
4444
// we're really interested in is if its a new instance.
4545
scope.$watch('model' + sfPath.normalize(form.key), function(value) {
46-
scope.modelArray = value;
46+
list = scope.modelArray = value;
4747
});
4848

4949
// Since ng-model happily creates objects in a deep path when setting a

0 commit comments

Comments
 (0)