Bug Fixes

This commit is contained in:
Luis Fernando Molina committed 2020-09-15 20:50:29 +02:00
1 parent b083ee89e1
commit e578d93c93
2 files changed
+13 -2

No files matched your search

@@ -377,9 +377,19 @@ function newCryptoEcosystemFunctions() {
for (let i = 0; i < timeMachines.length; i++) {
let timeMachine = timeMachines[i]
let session = timeMachine.payload.referenceParent
if (session === undefined) {continue}
if (session === undefined) {
/*
This is what usually happens, that the intall process make these
time machines to lose their reference parent since the install
process deletes them.
*/
functionLibraryNodeDeleter.deleteUIObject(timeMachine, rootNodes)
continue
}
let marketTradingTasks = findNodeInNodeMesh(session, 'Market Trading Tasks', undefined, true, false, true, false)
if (marketTradingTasks.payload.referenceParent === undefined) {continue}
if (marketTradingTasks === undefined) {continue}
if (marketTradingTasks.payload === undefined) {continue}
if (marketTradingTasks.payload.referenceParent === undefined) { continue }
if (marketTradingTasks.payload.referenceParent.id === market.id) {
functionLibraryNodeDeleter.deleteUIObject(timeMachine, rootNodes)
}
+1
View File
@@ -11,6 +11,7 @@ function findNodeInNodeMesh(node, nodeType, nodeName, connectedViaPayload, findI
function scanNodeMesh(startingNode, depth) {
if (startingNode === undefined) { return }
if (startingNode.payload === undefined) { return }
if (nodeFound !== undefined) { return }
if (depth >= MAX_DEPTH) {return}