Skip to content

Commit

Permalink
Merge pull request #9195 from GilbertCherrie/remove_current_workflow_…
Browse files Browse the repository at this point in the history
…state

Remove current workflow state if its done

(cherry picked from commit ecce835)
  • Loading branch information
Fryguy committed May 24, 2024
1 parent fcb8fc1 commit cf3f4c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/components/request-workflow-status/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const workflowStatusData = (response) => {
return undefined;
}
const rows = response.context ? rowData(response.context) : [];
if (response.context && response.context.State) {
if (response.context && response.context.State && !response.context.State.FinishedTime) {
const state = response.context.State;
const currentTime = new Date(); // Date Object for current time
const oldTime = Date.parse(state.EnteredTime); // ms since start time to entered time in UTC
Expand Down

0 comments on commit cf3f4c0

Please sign in to comment.