#222: Fixed bug with duplicate actions when copying

This commit is contained in:
frikky
2021-01-05 05:36:13 +01:00
parent f6f6a807f8
commit f73fb1d90a
+1
View File
@@ -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)