Skip to content

Commit

Permalink
Fix refetch on complete
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelef committed Jan 27, 2024
1 parent f7366d1 commit 65dace2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/src/TimeSeriesChart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ function TimeSeriesChart() {
}
};

const fetchAllStars = (repo) => {
const fetchAllStars = (repo, ignoreForceRefetch = false) => {
console.log(repo);
let fetchUrl = `${HOST}/allStars?repo=${repo}`;

if (forceRefetch) {
if (forceRefetch && !ignoreForceRefetch) {
fetchUrl += "&forceRefetch=true";
}

Expand Down Expand Up @@ -279,7 +279,7 @@ function TimeSeriesChart() {
closeSSE();
//if (onGoing) {
setTimeout(() => {
fetchAllStars(repo);
fetchAllStars(repo, true);
}, 1600);
//}
setLoading(false);
Expand Down

0 comments on commit 65dace2

Please sign in to comment.