Fix endless loop bug

This commit is contained in:
Simon Kellner 2020-06-14 17:00:02 +02:00
parent ad833f3831
commit f525316400
5 changed files with 11 additions and 1 deletions

View File

@ -186,6 +186,8 @@ export default {
if (recordsDB.page.number == recordsDB.page.totalPages - 1) { if (recordsDB.page.number == recordsDB.page.totalPages - 1) {
hasNext = false; hasNext = false;
} }
} else {
hasNext = false;
} }
}; };
xhttp.open( xhttp.open(

View File

@ -188,6 +188,8 @@ export default {
if (recordsDB.page.number == recordsDB.page.totalPages - 1) { if (recordsDB.page.number == recordsDB.page.totalPages - 1) {
hasNext = false; hasNext = false;
} }
} else {
hasNext = false;
} }
}; };

View File

@ -149,6 +149,8 @@ export default {
if (recordsDB.page.number == recordsDB.page.totalPages - 1) { if (recordsDB.page.number == recordsDB.page.totalPages - 1) {
hasNext = false; hasNext = false;
} }
} else {
hasNext = false;
} }
}; };
xhttp.open( xhttp.open(

View File

@ -189,7 +189,9 @@ export default {
if (recordsDB.page.number == recordsDB.page.totalPages - 1) { if (recordsDB.page.number == recordsDB.page.totalPages - 1) {
hasNext = false; hasNext = false;
} }
} } else {
hasNext = false;
}
}; };
xhttp.open( xhttp.open(
"GET", "GET",

View File

@ -117,6 +117,8 @@ export default {
if (recordsDB.page.number == recordsDB.page.totalPages - 1) { if (recordsDB.page.number == recordsDB.page.totalPages - 1) {
hasNext = false; hasNext = false;
} }
} else {
hasNext = false;
} }
}; };
xhttp.open( xhttp.open(