mirror of
https://github.com/techgaun/active-forks.git
synced 2024-12-22 13:32:14 +01:00
parent
4428b1dd0f
commit
49f113e40c
1 changed files with 1 additions and 2 deletions
|
@ -47,7 +47,7 @@ function updateDT(data) {
|
||||||
const forks = [];
|
const forks = [];
|
||||||
for (let fork of data) {
|
for (let fork of data) {
|
||||||
fork.repoLink = `<a href="https://github.com/${fork.full_name}">Link</a>`;
|
fork.repoLink = `<a href="https://github.com/${fork.full_name}">Link</a>`;
|
||||||
fork.ownerName = fork.owner.login;
|
fork.ownerName = fork.owner ? fork.owner.login : '<strike><em>Unknown</em></strike>';
|
||||||
forks.push(fork);
|
forks.push(fork);
|
||||||
}
|
}
|
||||||
const dataSet = forks.map(fork =>
|
const dataSet = forks.map(fork =>
|
||||||
|
@ -114,7 +114,6 @@ function fetchAndShow(repo) {
|
||||||
return response.json();
|
return response.json();
|
||||||
})
|
})
|
||||||
.then(data => {
|
.then(data => {
|
||||||
console.log(data);
|
|
||||||
updateDT(data);
|
updateDT(data);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
|
|
Loading…
Reference in a new issue