diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 8aaddc0..0e4d868 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -205,9 +205,9 @@ global.online='ob'; (async() => { var token = "d2539e5a7ae1f9f1b0eb2b8f22ca467a86d28407"; // desto var resdata = await getpipelines(token,pathfile) - console.log('info----------------------- ', JSON.stringify(resdata.info)); - var resob = resdata.info.data - var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.info.data.res25swarmlabname); + console.log('info----------------------- ', JSON.stringify(resdata.data)); + var resob = resdata.data + var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data.res25swarmlabname); indexfind === -1 ? global.pipelines.push({resob}) : console.log("object already exists")