Hide host_filter search key when hiding smart inventories

This commit is contained in:
mabashian 2021-06-22 11:09:33 -04:00 committed by Shane McDonald
parent 8246d4a298
commit f0a6567cd8
No known key found for this signature in database
GPG Key ID: 6F374AF6E9EB9374

View File

@ -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;