Use summary job_type on host list

This commit is contained in:
Jake McDermott 2020-07-16 14:10:55 -04:00
parent cd6df9299f
commit bf74aae80e
No known key found for this signature in database
GPG Key ID: 0E56ED990CDFCB4F

View File

@ -30,11 +30,6 @@ const DataListAction = styled(_DataListAction)`
function HostListItem({ i18n, host, isSelected, onSelect, detailUrl }) {
const labelId = `check-action-${host.id}`;
const recentPlaybookJobs = host.summary_fields.recent_jobs.map(job => ({
...job,
type: 'job',
}));
return (
<DataListItem key={host.id} aria-labelledby={labelId} id={`${host.id}`}>
<DataListItemRow>
@ -52,7 +47,7 @@ function HostListItem({ i18n, host, isSelected, onSelect, detailUrl }) {
</Link>
</DataListCell>,
<DataListCell key="recentJobs">
<Sparkline jobs={recentPlaybookJobs} />
<Sparkline jobs={host.summary_fields.recent_jobs} />
</DataListCell>,
<DataListCell key="inventory">
{host.summary_fields.inventory && (