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:
Fredrik Adelöw
2023-04-21 23:00:58 +02:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -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>
</>
),