From 1b508957382c98af19fd9c27c1d1fa42fd6569be Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Mon, 25 Nov 2019 11:17:37 -0500 Subject: [PATCH] Use short circuit operator in favor of ternary conditional --- .../screens/Inventory/InventoryHosts/InventoryHosts.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/awx/ui_next/src/screens/Inventory/InventoryHosts/InventoryHosts.jsx b/awx/ui_next/src/screens/Inventory/InventoryHosts/InventoryHosts.jsx index 921b78a7a5..b9d2fbeca4 100644 --- a/awx/ui_next/src/screens/Inventory/InventoryHosts/InventoryHosts.jsx +++ b/awx/ui_next/src/screens/Inventory/InventoryHosts/InventoryHosts.jsx @@ -165,12 +165,12 @@ function InventoryHosts({ i18n, location, match }) { itemsToDelete={selected} pluralizedItemName={i18n._(t`Hosts`)} />, - canAdd ? ( + canAdd && ( - ) : null, + ), ]} /> )} @@ -186,12 +186,12 @@ function InventoryHosts({ i18n, location, match }) { /> )} emptyStateControls={ - canAdd ? ( + canAdd && ( - ) : null + ) } />