Skip to content

Commit 832342a

Browse files
authored
Update PipelineRunTimelineEvent.tsx
1 parent 371db9a commit 832342a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/pages/scientificServices/pipelines/tabs/history/details/sections/timeline/PipelineRunTimelineEvent.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,6 @@ export const calculateRunDuration = (pipelineRunResult: PipelineRunResponse): st
168168
new Date(pipelineRunResult.jobReport.completed).getTime() -
169169
new Date(pipelineRunResult.jobReport.submitted).getTime();
170170

171-
if (durationMs === 0) {
172-
return 'In progress';
173-
}
174-
175171
const totalSeconds = Math.floor(durationMs / 1000);
176172
const hours = Math.floor(totalSeconds / 3600);
177173
const minutes = Math.floor((totalSeconds % 3600) / 60);

0 commit comments

Comments
 (0)