Bug Detaching Sensors, Indicators and Trading Engines
This commit is contained in:
1 parent
4e41f695e2
commit
4f5fc17b20
3 files changed
+78
-15
No files matched your search
@@ -104,17 +104,17 @@ function newAttachDetach () {
|
||||
return
|
||||
}
|
||||
case 'Sensor': {
|
||||
node.payload.parentNode.sensor = undefined
|
||||
node.payload.parentNode.bot = undefined
|
||||
completeDetachment(node, rootNodes)
|
||||
return
|
||||
}
|
||||
case 'Indicator': {
|
||||
node.payload.parentNode.indicator = undefined
|
||||
node.payload.parentNode.bot = undefined
|
||||
completeDetachment(node, rootNodes)
|
||||
return
|
||||
}
|
||||
case 'Trading Engine': {
|
||||
node.payload.parentNode.tradingEngine = undefined
|
||||
node.payload.parentNode.bot = undefined
|
||||
completeDetachment(node, rootNodes)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -565,7 +565,8 @@ function newPartsFromNodes () {
|
||||
function addSensor (node) {
|
||||
if (node.bot === undefined) {
|
||||
node.bot = {
|
||||
processes: []
|
||||
processes: [],
|
||||
code: '{}'
|
||||
}
|
||||
createPart('Sensor', '', node.bot, node, node)
|
||||
}
|
||||
@@ -575,7 +576,8 @@ function newPartsFromNodes () {
|
||||
function addIndicator (node) {
|
||||
if (node.bot === undefined) {
|
||||
node.bot = {
|
||||
processes: []
|
||||
processes: [],
|
||||
code: '{}'
|
||||
}
|
||||
createPart('Indicator', '', node.bot, node, node)
|
||||
}
|
||||
@@ -585,7 +587,8 @@ function newPartsFromNodes () {
|
||||
function addTradingEngine (node) {
|
||||
if (node.bot === undefined) {
|
||||
node.bot = {
|
||||
processes: []
|
||||
processes: [],
|
||||
code: '{}'
|
||||
}
|
||||
createPart('Trading Engine', '', node.bot, node, node)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user