Merge pull request #3331 from mabashian/IG-instances-modal

Fixes bug where all instances were preselected when modal was initially opened

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot] 2019-02-28 14:30:43 +00:00 committed by GitHub
commit cebd918e49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ function InstanceModalController ($scope, $state, Dataset, models, strings, Proc
$scope.$watch('vm.instances', function() {
angular.forEach(vm.instances, function(instance) {
instance.isSelected = _.filter(vm.selectedRows, 'id', instance.id).length > 0;
instance.isSelected = _.filter(vm.selectedRows, { 'id': instance.id }).length > 0;
});
});
}