fix: Hide empty start time data for queued builds

Signed-off-by: Adam Harvey <adaharve@cisco.com>
This commit is contained in:
Adam Harvey
2023-05-01 20:23:54 -04:00
parent d1797f0e91
commit 9329792dba
@@ -205,18 +205,19 @@ const generatedColumns: TableColumn[] = [
{
title: 'Time',
field: 'startTime',
render: (row: Partial<CITableBuildInfo>) => (
<>
<Typography variant="body2">
run {relativeTimeTo(row?.startTime)}
</Typography>
<Typography variant="body2">
{row?.stopTime
? `took ${durationHumanized(row?.startTime, row?.stopTime)}`
: ''}
</Typography>
</>
),
render: (row: Partial<CITableBuildInfo>) =>
row?.startTime ? (
<>
<Typography variant="body2">
run {relativeTimeTo(row?.startTime)}
</Typography>
<Typography variant="body2">
{row?.stopTime
? `took ${durationHumanized(row?.startTime, row?.stopTime)}`
: ''}
</Typography>
</>
) : null,
},
{
title: 'Workflow',