Skip to content
Snippets Groups Projects
Commit ac4cf1d0 authored by EREBUS_DMN\jsz's avatar EREBUS_DMN\jsz
Browse files

send in prop as date object

parent c29a3a89
No related branches found
No related tags found
2 merge requests!612Release 5.0.0,!567CE-3151: Fixed common warnings
......@@ -32,6 +32,8 @@ const createAlert = (type: Status, message: string) => {
};
const getDeploymentDetails = (operation: JobDetails) => {
const startTime = operation?.startTime ?? operation?.createdAt;
return {
user: (
<InternalLink
......@@ -63,8 +65,8 @@ const getDeploymentDetails = (operation: JobDetails) => {
),
duration: operation?.finishedAt ? (
<Duration
createOrStartDate={operation?.startTime ?? operation?.createdAt}
finishedAt={operation?.finishedAt}
createOrStartDate={startTime && new Date(startTime)}
finishedAt={operation?.finishedAt && new Date(operation?.finishedAt)}
textOnly
/>
) : (
......
......@@ -12,9 +12,9 @@ export const JobStatusColumn = ({ job }: JobStatusColumnProps) => (
<Stack gap={0.5}>
<JobStatus status={job.status} />
<StartAndDuration
createdAt={job.createdAt}
startTime={job?.startTime}
finishedAt={job?.finishedAt}
createdAt={job.createdAt && new Date(job.createdAt)}
startTime={job.startTime && new Date(job.startTime)}
finishedAt={job.finishedAt && new Date(job.finishedAt)}
/>
</Stack>
</Stack>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment