fix select boxes in JobList

This commit is contained in:
Keith Grant
2021-01-27 09:26:19 -08:00
parent 7bf7cebd72
commit 0feeaf0453
2 changed files with 3 additions and 2 deletions

View File

@@ -268,13 +268,14 @@ function JobList({ i18n, defaultParams, showTypeColumn = false }) {
]} ]}
/> />
)} )}
renderRow={job => ( renderRow={(job, index) => (
<JobListItem <JobListItem
key={job.id} key={job.id}
job={job} job={job}
showTypeColumn={showTypeColumn} showTypeColumn={showTypeColumn}
onSelect={() => handleSelect(job)} onSelect={() => handleSelect(job)}
isSelected={selected.some(row => row.id === job.id)} isSelected={selected.some(row => row.id === job.id)}
rowIndex={index}
/> />
)} )}
/> />

View File

@@ -51,8 +51,8 @@ function JobListItem({
rowIndex, rowIndex,
isSelected, isSelected,
onSelect, onSelect,
disable: false,
}} }}
dataLabel={i18n._(t`Select`)}
/> />
<Td id={labelId} dataLabel={i18n._(t`Name`)}> <Td id={labelId} dataLabel={i18n._(t`Name`)}>
<span> <span>