mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
Fixes bug where all instances were preselected when modal was initially opened
This commit is contained in:
parent
3b5681465a
commit
2be7f853f3
@ -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