Allways set loaded to true

ref #175
This commit is contained in:
niggl committed 2023-04-18 20:47:42 +02:00
1 parent ccf865687b
commit 52439aa5bc
4 files changed
+4 -13

No files matched your search

+1 -3
View File
@@ -172,9 +172,7 @@
data: current_cards, data: current_cards,
})); }));
if (page == 0) { dataLoaded = true;
dataLoaded = true;
}
page++; page++;
} }
console.log("All cards loaded"); console.log("All cards loaded");
@@ -41,9 +41,7 @@
current_donations = current_donations.concat(...donations); current_donations = current_donations.concat(...donations);
if (page == 0) { dataLoaded = true;
dataLoaded = true;
}
page++; page++;
} }
console.log("All donations loaded"); console.log("All donations loaded");
@@ -179,9 +179,7 @@
data: current_runners, data: current_runners,
})); }));
if (page == 0) { dataLoaded = true;
dataLoaded = true;
}
page++; page++;
} }
console.log("All runners loaded"); console.log("All runners loaded");
+1 -4
View File
@@ -182,7 +182,6 @@
const scans = await ScanService.scanControllerGetAll(page, 500); const scans = await ScanService.scanControllerGetAll(page, 500);
if (scans.length == 0) { if (scans.length == 0) {
page = -2; page = -2;
dataLoaded = true;
} }
current_scans = current_scans.concat(...scans); current_scans = current_scans.concat(...scans);
@@ -191,9 +190,7 @@
data: current_scans, data: current_scans,
})); }));
if (page == 0) { dataLoaded = true;
dataLoaded = true;
}
page++; page++;
} }
console.log("All scans loaded"); console.log("All scans loaded");