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

This commit is contained in:
mabashian 2019-02-27 15:24:29 -05:00
parent 3b5681465a
commit 2be7f853f3

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;
});
});
}