From 7ccc723dd7d8bb25a0a2fbbb45b484fcf5d8d99c Mon Sep 17 00:00:00 2001 From: Duncan Ragsdale <88173870+Thistleman@users.noreply.github.com> Date: Tue, 12 Mar 2024 11:47:54 -0700 Subject: [PATCH] ahem, oops. infinite loop... Signed-off-by: Duncan Ragsdale <88173870+Thistleman@users.noreply.github.com> --- frontend/src/services/dashboard_service.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/frontend/src/services/dashboard_service.js b/frontend/src/services/dashboard_service.js index 83a81fd0..729899bb 100644 --- a/frontend/src/services/dashboard_service.js +++ b/frontend/src/services/dashboard_service.js @@ -12,7 +12,7 @@ const DashboardService = { console.log('Printing response'); console.log(response); if (response.length > 0) { - for (let i = 0; i < response.length; i + 1) { + for (let i = 0; i < response.length; i += 1) { const element = { id, algorithm: response[i].algorithm_s3_path, @@ -26,21 +26,6 @@ const DashboardService = { finalResponse.push(element); } } - // else{ - // let element = { - // id: id, - // developer_group: resp["developer_group"], - // algorithm: resp["algorithm"], - // created_by: resp["created_by"], - // execution_time: faker.helpers.arrayElement([66.19317770004272,100.97519278526306]), - // status: null, - // metrics: null, - // error: faker.helpers.arrayElement([23.137764944250826,4.846236274675835]), - // data_requirement: "MAE" - // } - // id += 1; - // finalResponse.push(element); - // } console.log(finalResponse); return finalResponse; },