Skip to content

Commit

Permalink
ahem, oops. infinite loop...
Browse files Browse the repository at this point in the history
Signed-off-by: Duncan Ragsdale <[email protected]>
  • Loading branch information
Thistleman committed Mar 12, 2024
1 parent 45cb436 commit 7ccc723
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions frontend/src/services/dashboard_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
},
Expand Down

0 comments on commit 7ccc723

Please sign in to comment.