From f0a6567cd8e276423468e65451d0e09bbc2fc5da Mon Sep 17 00:00:00 2001 From: mabashian Date: Tue, 22 Jun 2021 11:09:33 -0400 Subject: [PATCH] Hide host_filter search key when hiding smart inventories --- awx/ui_next/src/components/Lookup/InventoryLookup.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui_next/src/components/Lookup/InventoryLookup.jsx b/awx/ui_next/src/components/Lookup/InventoryLookup.jsx index 29c667660d..be18418972 100644 --- a/awx/ui_next/src/components/Lookup/InventoryLookup.jsx +++ b/awx/ui_next/src/components/Lookup/InventoryLookup.jsx @@ -69,7 +69,7 @@ function InventoryLookup({ searchableKeys: Object.keys( actionsResponse.data.actions?.GET || {} ).filter(key => { - if (key === 'kind' && hideSmartInventories) { + if (['kind', 'host_filter'].includes(key) && hideSmartInventories) { return false; } return actionsResponse.data.actions?.GET[key].filterable;