Detaching Strategies working.
This commit is contained in:
1 parent
547884a5a6
commit
e3292cf065
1 file changed
+7
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user