Merge pull request #17311 from adamdmharvey/adamdmharvey/circleci-took-empty
fix(circleci): Avoid trailing "took" in table row for in progress builds
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-circleci': patch
|
||||
---
|
||||
|
||||
Fixes row display for in progress jobs to not display trailing "took"
|
||||
@@ -211,7 +211,9 @@ const generatedColumns: TableColumn[] = [
|
||||
run {relativeTimeTo(row?.startTime)}
|
||||
</Typography>
|
||||
<Typography variant="body2">
|
||||
took {durationHumanized(row?.startTime, row?.stopTime)}
|
||||
{row?.stopTime
|
||||
? `took ${durationHumanized(row?.startTime, row?.stopTime)}`
|
||||
: ''}
|
||||
</Typography>
|
||||
</>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user