Update Layer.js

This commit is contained in:
Luis Fernando Molina committed 2020-11-03 11:49:21 +01:00
1 parent 7cfd3cf664
commit 55a4fcc022
1 file changed
+3
@@ -231,6 +231,9 @@ function newLayer() {
if (thisObject.bot === undefined) {
thisObject.bot = UI.projects.superalgos.utilities.meshes.findNodeInNodeMesh(thisObject.definition, 'Trading Bot', undefined, false, true, true, true)
}
if (thisObject.bot === undefined) {
thisObject.bot = UI.projects.superalgos.utilities.meshes.findNodeInNodeMesh(thisObject.definition, 'AI Bot', undefined, false, true, true, true)
}
if (thisObject.bot === undefined) {
thisObject.payload.uiObject.setErrorMessage('Bot not Found')
return