From d2378637fa53b28f3e456ce8e115e5df43408b06 Mon Sep 17 00:00:00 2001 From: mabashian Date: Tue, 22 Aug 2017 13:31:33 -0400 Subject: [PATCH] Fixed bug removing item from allSelected --- .../src/access/add-rbac-resource/rbac-resource.controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/ui/client/src/access/add-rbac-resource/rbac-resource.controller.js b/awx/ui/client/src/access/add-rbac-resource/rbac-resource.controller.js index f43226537c..450ab9c997 100644 --- a/awx/ui/client/src/access/add-rbac-resource/rbac-resource.controller.js +++ b/awx/ui/client/src/access/add-rbac-resource/rbac-resource.controller.js @@ -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; };