diff --git a/awx/ui_next/src/components/Search/AdvancedSearch.jsx b/awx/ui_next/src/components/Search/AdvancedSearch.jsx index 43ef7ce09f..13e573b61c 100644 --- a/awx/ui_next/src/components/Search/AdvancedSearch.jsx +++ b/awx/ui_next/src/components/Search/AdvancedSearch.jsx @@ -134,8 +134,8 @@ function AdvancedSearch({ onCreateOption={setKeySelection} maxHeight="500px" > - {allKeys.map((optionKey, i) => ( - + {allKeys.map((optionKey) => ( + {optionKey} ))} diff --git a/awx/ui_next/src/components/Search/Search.jsx b/awx/ui_next/src/components/Search/Search.jsx index 029c2a39a5..0fe29d550c 100644 --- a/awx/ui_next/src/components/Search/Search.jsx +++ b/awx/ui_next/src/components/Search/Search.jsx @@ -325,7 +325,7 @@ class Search extends React.Component { search column so the chips show up */} {Object.keys(chipsByKey) .filter(val => chipsByKey[val].chips.length > 0) - .filter(val => columns.map(val => val.key).indexOf(val) === -1) + .filter(val => columns.map(val2 => val2.key).indexOf(val) === -1) .map(leftoverKey => (