Skip to content
Snippets Groups Projects
Commit da80953d authored by Domonkos Gulyas's avatar Domonkos Gulyas
Browse files

Merge branch 'CE-3301-Update-duration-real-time' into 'develop'

CE-3301: Update duration real time

See merge request !592
parents 345fa78f 5415ab0b
No related branches found
No related tags found
2 merge requests!612Release 5.0.0,!592CE-3301: Update duration real time
Pipeline #212700 failed
...@@ -32,8 +32,6 @@ const createAlert = (type: Status, message: string) => { ...@@ -32,8 +32,6 @@ const createAlert = (type: Status, message: string) => {
}; };
const getDeploymentDetails = (operation: JobDetails) => { const getDeploymentDetails = (operation: JobDetails) => {
const startTime = operation?.startTime ?? operation?.createdAt;
return { return {
user: ( user: (
<InternalLink <InternalLink
...@@ -63,11 +61,10 @@ const getDeploymentDetails = (operation: JobDetails) => { ...@@ -63,11 +61,10 @@ const getDeploymentDetails = (operation: JobDetails) => {
) : ( ) : (
<EmptyValue /> <EmptyValue />
), ),
duration: operation?.finishedAt ? ( duration: operation ? (
<Duration <Duration
createOrStartDate={startTime && new Date(startTime)} createOrStartDate={new Date(operation.createdAt ?? new Date())}
finishedAt={operation?.finishedAt && new Date(operation?.finishedAt)} finishedAt={new Date(operation.finishedAt ?? new Date())}
textOnly
/> />
) : ( ) : (
<EmptyValue /> <EmptyValue />
......
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