Allways set loaded to true

ref #175
This commit is contained in:
Nicolai Ort 2023-04-18 20:47:42 +02:00
parent ccf865687b
commit 52439aa5bc
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
4 changed files with 4 additions and 13 deletions

View File

@ -172,9 +172,7 @@
data: current_cards,
}));
if (page == 0) {
dataLoaded = true;
}
dataLoaded = true;
page++;
}
console.log("All cards loaded");

View File

@ -41,9 +41,7 @@
current_donations = current_donations.concat(...donations);
if (page == 0) {
dataLoaded = true;
}
dataLoaded = true;
page++;
}
console.log("All donations loaded");

View File

@ -179,9 +179,7 @@
data: current_runners,
}));
if (page == 0) {
dataLoaded = true;
}
dataLoaded = true;
page++;
}
console.log("All runners loaded");

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");