mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Replace chip key with non-array index
Address a lint error (rule: react/no-array-index-key) by using chip.key prop val instead of an array index for the component key.
This commit is contained in:
parent
6223a78ff4
commit
f09120a973
@ -279,8 +279,8 @@ function HostFilterLookup({
|
||||
numChips={5}
|
||||
totalChips={chips[key]?.chips?.length || 0}
|
||||
>
|
||||
{chips[key]?.chips?.map((chip, index) => (
|
||||
<Chip key={index} isReadOnly>
|
||||
{chips[key]?.chips?.map(chip => (
|
||||
<Chip key={chip.key} isReadOnly>
|
||||
{chip.node}
|
||||
</Chip>
|
||||
))}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user