mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 13:36:02 -03:30
Fixes bug where checkbox list item was selecting things twice
This commit is contained in:
@@ -100,7 +100,9 @@ function SelectResourceStep({
|
|||||||
headerRow={
|
headerRow={
|
||||||
<HeaderRow qsConfig={QS_Config(sortColumns)}>
|
<HeaderRow qsConfig={QS_Config(sortColumns)}>
|
||||||
{sortColumns.map(({ name, key }) => (
|
{sortColumns.map(({ name, key }) => (
|
||||||
<HeaderCell sortKey={key}>{name}</HeaderCell>
|
<HeaderCell sortKey={key} key={key}>
|
||||||
|
{name}
|
||||||
|
</HeaderCell>
|
||||||
))}
|
))}
|
||||||
</HeaderRow>
|
</HeaderRow>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ const CheckboxListItem = ({
|
|||||||
select={{
|
select={{
|
||||||
rowIndex,
|
rowIndex,
|
||||||
isSelected,
|
isSelected,
|
||||||
onSelect: isSelected ? onDeselect : onSelect,
|
|
||||||
variant: isRadio ? 'radio' : 'checkbox',
|
variant: isRadio ? 'radio' : 'checkbox',
|
||||||
}}
|
}}
|
||||||
name={name}
|
name={name}
|
||||||
@@ -43,7 +42,7 @@ const CheckboxListItem = ({
|
|||||||
|
|
||||||
{columns?.length > 0 ? (
|
{columns?.length > 0 ? (
|
||||||
columns.map(col => (
|
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]}
|
{item[col.key]}
|
||||||
</Td>
|
</Td>
|
||||||
))
|
))
|
||||||
|
|||||||
Reference in New Issue
Block a user