diff --git a/.changeset/lazy-keys-work.md b/.changeset/lazy-keys-work.md new file mode 100644 index 0000000000..8a01662929 --- /dev/null +++ b/.changeset/lazy-keys-work.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-circleci': patch +--- + +Fixes row display for in progress jobs to not display trailing "took" diff --git a/plugins/circleci/src/components/BuildsPage/lib/CITable/CITable.tsx b/plugins/circleci/src/components/BuildsPage/lib/CITable/CITable.tsx index 82ee144a24..a9d19bf6db 100644 --- a/plugins/circleci/src/components/BuildsPage/lib/CITable/CITable.tsx +++ b/plugins/circleci/src/components/BuildsPage/lib/CITable/CITable.tsx @@ -211,7 +211,9 @@ const generatedColumns: TableColumn[] = [ run {relativeTimeTo(row?.startTime)} - took {durationHumanized(row?.startTime, row?.stopTime)} + {row?.stopTime + ? `took ${durationHumanized(row?.startTime, row?.stopTime)}` + : ''} ),