diff --git a/Projects/Foundations/UI/Function-Libraries/UiObjectsFromNodes.js b/Projects/Foundations/UI/Function-Libraries/UiObjectsFromNodes.js index ccac9e95c..754b230da 100644 --- a/Projects/Foundations/UI/Function-Libraries/UiObjectsFromNodes.js +++ b/Projects/Foundations/UI/Function-Libraries/UiObjectsFromNodes.js @@ -164,6 +164,7 @@ function newFoundationsFunctionLibraryUiObjectsFromNodes() { if (err && err.result !== GLOBAL.DEFAULT_OK_RESPONSE.result) { console.log('[WARN] Cannot load plugin ' + pluginFolder + ' ' + name + '. The Workspace will be loaded with this plugin file missing.') } else { + let receivedNode try { @@ -174,6 +175,7 @@ function newFoundationsFunctionLibraryUiObjectsFromNodes() { console.log('[ERROR] pluginAllTheseFiles -> err.stack = ' + err.stack) return } + /* If the workspace already contains a root node with the id of the head of the hirierchy we are loading, we remove it because the plugin file has precedende. @@ -181,6 +183,7 @@ function newFoundationsFunctionLibraryUiObjectsFromNodes() { for (let i = 0; i < node.rootNodes.length; i++) { let rootNode = node.rootNodes[i] if (rootNode.id === receivedNode.id) { + console.log('[WARN] The node with name "' + rootNode.name + '" and type "' + rootNode.type + '" will be replaced by the node with name "' + receivedNode.name + '" and type "' + receivedNode.type +'" because they both have the same node.id') node.rootNodes.splice(i, 1) break } @@ -365,7 +368,6 @@ function newFoundationsFunctionLibraryUiObjectsFromNodes() { if (node[property.name] !== undefined) { if (node[property.name].name === pathName && node[property.name].type === pathType) { nextNode = node[property.name] - console.log("we have a match!", nextNode) return nextNode } } diff --git a/Projects/Governance/Plugins/Assets/Education-Project-PL.json b/Projects/Governance/Plugins/Assets/Education-Project-PL.json index f691d460b..db2b5b2f3 100644 --- a/Projects/Governance/Plugins/Assets/Education-Project-PL.json +++ b/Projects/Governance/Plugins/Assets/Education-Project-PL.json @@ -36,7 +36,7 @@ } ], "assets": [], - "id": "79467868-de64-42a9-8852-8c1377bbd52b", + "id": "79467863-de64-42a9-8852-8c1377bbd52b", "savedPayload": { "position": { "x": 2810.75, diff --git a/Projects/Governance/Plugins/Assets/Ethereum-Project-PL.json b/Projects/Governance/Plugins/Assets/Ethereum-Project-PL.json index 6e824e5b0..dcef8ad78 100644 --- a/Projects/Governance/Plugins/Assets/Ethereum-Project-PL.json +++ b/Projects/Governance/Plugins/Assets/Ethereum-Project-PL.json @@ -36,7 +36,7 @@ } ], "assets": [], - "id": "5ea11d1d-31e4-4e77-9697-cf373ab0c1e3", + "id": "5ea11d1d-31e4-4e77-9297-cf373ab0c1e3", "savedPayload": { "position": { "x": 2896.75, diff --git a/Projects/Governance/Plugins/Positions/Superalgos.json b/Projects/Governance/Plugins/Positions/Superalgos.json index 7f6a9668a..4b232f8a6 100644 --- a/Projects/Governance/Plugins/Positions/Superalgos.json +++ b/Projects/Governance/Plugins/Positions/Superalgos.json @@ -311,7 +311,7 @@ } ], "positions": [], - "id": "50c68665-5da2-48a8-b229-7a1563ae82d2", + "id": "50c68665-5da2-48a4-b229-7a1563ae82d2", "savedPayload": { "position": { "x": 30231,