mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
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:
commit
cebd918e49
@ -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;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user