Reduced overall execution sizes

This commit is contained in:
frikky
2021-01-17 16:21:51 +01:00
parent 38b454bc38
commit 16caf4aac5
6 changed files with 146 additions and 91 deletions
+3 -2
View File
@@ -1355,12 +1355,13 @@ const AngularWorkflow = (props) => {
if (workflow.start === data.id && workflow.actions.length > 1) {
// FIXME - should check branches connected to startnode, as picking random
// might just be confusing
cy.nodes().forEach(function( ele ) {
cy.nodes().some(function( ele ) {
if (ele.id() !== workflow.start && ele.data()["label"] !== undefined) {
alert.success("Changed startnode to "+ele.data()["label"])
ele.data("isStartNode", true)
workflow.start = ele.id()
return true
//throw BreakException
return false
}
});
}