From 1efad4547a2bcda933065d70202973cfe02f0bf5 Mon Sep 17 00:00:00 2001 From: frikky Date: Fri, 19 Jun 2020 20:13:15 +0200 Subject: [PATCH] Fixed double startnodes --- frontend/src/AngularWorkflow.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/AngularWorkflow.js b/frontend/src/AngularWorkflow.js index 585555d0..822bcfa7 100644 --- a/frontend/src/AngularWorkflow.js +++ b/frontend/src/AngularWorkflow.js @@ -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) } }