From 014520ee2bfdde6fb96775ac9a4788198977b887 Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Wed, 11 Dec 2019 08:41:05 -0500 Subject: [PATCH] Initialize list with none selected --- .../src/screens/Inventory/InventoryList/InventoryList.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/ui_next/src/screens/Inventory/InventoryList/InventoryList.jsx b/awx/ui_next/src/screens/Inventory/InventoryList/InventoryList.jsx index 59e63a9b35..7fb42eb4bc 100644 --- a/awx/ui_next/src/screens/Inventory/InventoryList/InventoryList.jsx +++ b/awx/ui_next/src/screens/Inventory/InventoryList/InventoryList.jsx @@ -146,7 +146,8 @@ class InventoriesList extends Component { const { match, i18n } = this.props; const canAdd = actions && Object.prototype.hasOwnProperty.call(actions, 'POST'); - const isAllSelected = selected.length === inventories.length; + const isAllSelected = + selected.length === inventories.length && selected.length !== 0; const addButton = (