Fixed double startnodes

This commit is contained in:
frikky
2020-06-19 20:13:15 +02:00
parent 3096ff31de
commit 1efad4547a
+7 -1
View File
@@ -912,10 +912,16 @@ const AngularWorkflow = (props) => {
return
}
// Remove bad startnode
const startnode_exists = false
for (var key in workflow.actions) {
const action = workflow.actions[key]
console.log("ACTION: ", action)
if (action.isStartNode && workflow.start !== action.id) {
action.isStartNode = false
}
}
setWorkflow(workflow)
}
}