mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Fixes bug where checkbox list item was selecting things twice
This commit is contained in:
parent
a0b14b994d
commit
4c1b0297e7
@ -100,7 +100,9 @@ function SelectResourceStep({
|
||||
headerRow={
|
||||
<HeaderRow qsConfig={QS_Config(sortColumns)}>
|
||||
{sortColumns.map(({ name, key }) => (
|
||||
<HeaderCell sortKey={key}>{name}</HeaderCell>
|
||||
<HeaderCell sortKey={key} key={key}>
|
||||
{name}
|
||||
</HeaderCell>
|
||||
))}
|
||||
</HeaderRow>
|
||||
}
|
||||
|
||||
@ -34,7 +34,6 @@ const CheckboxListItem = ({
|
||||
select={{
|
||||
rowIndex,
|
||||
isSelected,
|
||||
onSelect: isSelected ? onDeselect : onSelect,
|
||||
variant: isRadio ? 'radio' : 'checkbox',
|
||||
}}
|
||||
name={name}
|
||||
@ -43,7 +42,7 @@ const CheckboxListItem = ({
|
||||
|
||||
{columns?.length > 0 ? (
|
||||
columns.map(col => (
|
||||
<Td aria-label={col.name} dataLabel={col.key}>
|
||||
<Td aria-label={col.name} dataLabel={col.key} key={col.key}>
|
||||
{item[col.key]}
|
||||
</Td>
|
||||
))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user