mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 10:27:34 -02:30
fix duplicate variable and key usng array index issues
This commit is contained in:
@@ -134,8 +134,8 @@ function AdvancedSearch({
|
|||||||
onCreateOption={setKeySelection}
|
onCreateOption={setKeySelection}
|
||||||
maxHeight="500px"
|
maxHeight="500px"
|
||||||
>
|
>
|
||||||
{allKeys.map((optionKey, i) => (
|
{allKeys.map((optionKey) => (
|
||||||
<SelectOption key={`${i}.${optionKey}`} value={optionKey}>
|
<SelectOption key={optionKey} value={optionKey}>
|
||||||
{optionKey}
|
{optionKey}
|
||||||
</SelectOption>
|
</SelectOption>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -325,7 +325,7 @@ class Search extends React.Component {
|
|||||||
search column so the chips show up */}
|
search column so the chips show up */}
|
||||||
{Object.keys(chipsByKey)
|
{Object.keys(chipsByKey)
|
||||||
.filter(val => chipsByKey[val].chips.length > 0)
|
.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 => (
|
.map(leftoverKey => (
|
||||||
<ToolbarFilter
|
<ToolbarFilter
|
||||||
chips={
|
chips={
|
||||||
|
|||||||
Reference in New Issue
Block a user