Skip to content

Commit

Permalink
Minor shared fix
Browse files Browse the repository at this point in the history
  • Loading branch information
frikky committed Feb 19, 2025
1 parent b5cc49a commit 2288687
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -4122,6 +4122,9 @@ func GetWorkflowExecutions(resp http.ResponseWriter, request *http.Request) {
workflowExecutions[index].Workflow.Actions = newActions
workflowExecutions[index].Workflow.Image = ""
workflowExecutions[index].Workflow.Triggers = newTriggers

// Ensures loading also gives the right, cleaned up data
workflowExecutions[index] = cleanupExecutionNodes(ctx, workflowExecutions[index])
}

newjson, err := json.Marshal(workflowExecutions)
Expand Down Expand Up @@ -4316,8 +4319,7 @@ func GetWorkflowExecutionsV2(resp http.ResponseWriter, request *http.Request) {
}
}

// Would like to omit the whole thing :thinking:
//workflowExecutions[index].Workflow = Workflow{}
workflowExecutions[index] = cleanupExecutionNodes(ctx, workflowExecutions[index])
}

newReturn := ExecutionReturn{
Expand Down

0 comments on commit 2288687

Please sign in to comment.