Added execution image

This commit is contained in:
frikky
2020-05-18 12:10:50 +02:00
parent 2f06a383bd
commit 5cd07e618c
5 changed files with 7 additions and 6 deletions
+3 -1
View File
@@ -798,7 +798,9 @@ const AngularWorkflow = (props) => {
break
} else if (workflow.branches[key].destination_id === edge.target && workflow.branches[key].source_id === edge.source) {
// Checks if NOT trigger
if (workflow.triggers !== undefined && workflow.triggers.find(data => data.id === workflow.branches[key].source_id).length === 0) {
//workflow.triggers.find(data => data.id === workflow.branches[key].source_id).length === 0)
const triggercheck = workflow.triggers.find(data => data.id === workflow.branches[key].source_id)
if (workflow.triggers !== undefined && triggercheck !== undefined && triggercheck.length === 0) {
alert.error("That pointer already exists")
event.target.remove()
}