Detaching Strategies working.

This commit is contained in:
Luis Fernando Molina committed 2019-05-22 11:28:45 +02:00
1 parent 547884a5a6
commit e3292cf065
1 file changed
+7 -4
+7 -4
View File
@@ -50,7 +50,13 @@ function newWorkspace () {
return
}
case 'Strategy': {
let payload = node.payload
for (let i = 0; i < payload.parentNode.strategies.length; i++) {
let strategy = payload.parentNode.strategies[i]
if (strategy.id === node.id) {
payload.parentNode.strategies.splice(i, 1)
}
}
}
break
case 'Trigger On Event': {
@@ -107,9 +113,6 @@ function newWorkspace () {
}
}
break
default:
}
node.payload.chainParent = undefined
node.payload.parentNode = undefined