Skip to content

Commit

Permalink
Tweak codebuild projects list empty bug #337
Browse files Browse the repository at this point in the history
  • Loading branch information
iann0036 committed Jul 10, 2023
1 parent a10059c commit c61e863
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions js/services/codebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,22 +214,24 @@ async function updateDatatableDeveloperToolsCodeBuild() {
}, true).then(async (data) => {
$('#section-developertools-codebuild-projects-datatable').deferredBootstrapTable('removeAll');

await sdkcall("CodeBuild", "batchGetProjects", {
names: data.projects
}, true).then((data) => {
data.projects.forEach(project => {
$('#section-developertools-codebuild-projects-datatable').deferredBootstrapTable('append', [{
f2id: project.arn,
f2type: 'codebuild.project',
f2data: project,
f2region: region,
name: project.name,
description: project.description,
timeout: project.timeoutInMinutes + " minutes",
creationtime: project.created
}]);
})
});
if (data.projects && data.projects.length) {
await sdkcall("CodeBuild", "batchGetProjects", {
names: data.projects
}, true).then((data) => {
data.projects.forEach(project => {
$('#section-developertools-codebuild-projects-datatable').deferredBootstrapTable('append', [{
f2id: project.arn,
f2type: 'codebuild.project',
f2data: project,
f2region: region,
name: project.name,
description: project.description,
timeout: project.timeoutInMinutes + " minutes",
creationtime: project.created
}]);
})
});
}
});

await sdkcall("CodeBuild", "listSourceCredentials", {
Expand Down

0 comments on commit c61e863

Please sign in to comment.