From f77a4ce8cc64a069249b44356bbaf03a5727ec35 Mon Sep 17 00:00:00 2001 From: zeus Date: Mon, 23 Nov 2020 12:08:56 +0200 Subject: [PATCH] global --- swarmlab-app/src/run/app.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 74c1f2d..6cc877b 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -211,8 +211,16 @@ global.pipelines=[]; //resdata.data.pathlogfile = 'test' var resob = {} resob.pathlogfile = pathfileval - resob.data = resdata.data[0].res25swarmlabname - resob.user = resdata.data[0].res25user + var resobarray = [] + for (let i in resdata.data) { + var resob1 = {} + resob1.data = resdata.data[i].res25swarmlabname + resob1.user25user = resdata.data[i].res25user + resob1.res25creator = resdata.data[i].res25creator + resob1.res25fileforce = resdata.data[i].res25fileforce + resobarray.push(resob1) + } + resob.data = resobarray //var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data[0].res25swarmlabname); var indexfind = global.pipelines.findIndex(x => x.pathlogfile==pathfileval);