From 9a843827a5a9ec7ac88e3a5d03975d4d32465e97 Mon Sep 17 00:00:00 2001 From: zeus Date: Mon, 23 Nov 2020 02:54:33 +0200 Subject: [PATCH] watcher --- swarmlab-app/src/run/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index f156ad1..2b7ad79 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -211,8 +211,8 @@ global.pipelines=[]; //resdata.data.pathlogfile = 'test' var resob = {} resob.pathlogfile = pathfileval - resob.data = resdata.data.res25swarmlabname - var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data.res25swarmlabname); + resob.data = resdata.data[0].res25swarmlabname + var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data[0].res25swarmlabname); //indexfind === -1 ? global.pipelines.push({resob}) : console.log("object already exists") indexfind === -1 ? global.pipelines.push(resob) : console.log("object already exists")