#222: Fixed bug with duplicate actions when copying
This commit is contained in:
@@ -1722,6 +1722,7 @@ func setNewWorkflow(resp http.ResponseWriter, request *http.Request) {
|
||||
log.Printf("Has %d actions already", len(newActions))
|
||||
}
|
||||
|
||||
workflow.Actions = []Action{}
|
||||
for _, item := range workflow.Actions {
|
||||
item.ID = uuid.NewV4().String()
|
||||
newActions = append(newActions, item)
|
||||
|
||||
Reference in New Issue
Block a user