diff --git a/src/components/Job/JobDetails.tsx b/src/components/Job/JobDetails.tsx index 8f7453a13f61c6506684ecb47da3b2f51f0853bf..244da05ed4b0136e56697b612a0df09f3d25b579 100644 --- a/src/components/Job/JobDetails.tsx +++ b/src/components/Job/JobDetails.tsx @@ -32,8 +32,6 @@ const createAlert = (type: Status, message: string) => { }; const getDeploymentDetails = (operation: JobDetails) => { - const startTime = operation?.startTime ?? operation?.createdAt; - return { user: ( <InternalLink @@ -63,11 +61,10 @@ const getDeploymentDetails = (operation: JobDetails) => { ) : ( <EmptyValue /> ), - duration: operation?.finishedAt ? ( + duration: operation ? ( <Duration - createOrStartDate={startTime && new Date(startTime)} - finishedAt={operation?.finishedAt && new Date(operation?.finishedAt)} - textOnly + createOrStartDate={new Date(operation.createdAt ?? new Date())} + finishedAt={new Date(operation.finishedAt ?? new Date())} /> ) : ( <EmptyValue />