1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

Fixed bug removing item from allSelected

This commit is contained in:
mabashian 2017-08-22 13:31:33 -04:00
parent 9007965a8e
commit d2378637fa

View File

@ -80,7 +80,8 @@ export default ['$rootScope', '$scope', 'GetBasePath', 'Rest', '$q', 'Wait', 'Pr
};
scope.removeObject = function(obj){
_.remove(scope.allSelected, {id: obj.id});
let resourceType = scope.currentTab();
delete scope.allSelected[resourceType][obj.id];
obj.isSelected = false;
};