Allways set loaded to true

ref #175
This commit is contained in:
2023-04-18 20:47:42 +02:00
parent ccf865687b
commit 52439aa5bc
4 changed files with 4 additions and 13 deletions
+1 -3
View File
@@ -172,9 +172,7 @@
data: current_cards,
}));
if (page == 0) {
dataLoaded = true;
}
dataLoaded = true;
page++;
}
console.log("All cards loaded");
@@ -41,9 +41,7 @@
current_donations = current_donations.concat(...donations);
if (page == 0) {
dataLoaded = true;
}
dataLoaded = true;
page++;
}
console.log("All donations loaded");
@@ -179,9 +179,7 @@
data: current_runners,
}));
if (page == 0) {
dataLoaded = true;
}
dataLoaded = true;
page++;
}
console.log("All runners loaded");
+1 -4
View File
@@ -182,7 +182,6 @@
const scans = await ScanService.scanControllerGetAll(page, 500);
if (scans.length == 0) {
page = -2;
dataLoaded = true;
}
current_scans = current_scans.concat(...scans);
@@ -191,9 +190,7 @@
data: current_scans,
}));
if (page == 0) {
dataLoaded = true;
}
dataLoaded = true;
page++;
}
console.log("All scans loaded");