mirror of
https://github.com/ansible/awx.git
synced 2026-03-14 23:47:28 -02:30
Merge pull request #214 from marshmalien/fix/7010-pending-delete-undefined-inventory
Prevent 'pending_deletion' on undefined inventory
This commit is contained in:
@@ -106,7 +106,7 @@ function InventoriesList($scope,
|
||||
|
||||
$scope.$on(`ws-inventories`, function(e, data){
|
||||
let inventory = $scope.inventories.find((inventory) => inventory.id === data.inventory_id);
|
||||
if (data.status === 'pending_deletion') {
|
||||
if (data.status === 'pending_deletion' && inventory !== undefined) {
|
||||
inventory.pending_deletion = true;
|
||||
}
|
||||
if (data.status === 'deleted') {
|
||||
|
||||
Reference in New Issue
Block a user