This commit is contained in:
parent
c8901a91c2
commit
0b7d26f150
1 changed files with 4 additions and 1 deletions
|
@ -5,9 +5,12 @@
|
|||
let listingIndex = 0;
|
||||
|
||||
function updateListingIndex(amount: number): void {
|
||||
if (listingIndex == amount - 2) {
|
||||
fetchData = api.fetchData();
|
||||
}
|
||||
|
||||
if (listingIndex >= amount - 1) {
|
||||
listingIndex = 0;
|
||||
fetchData = api.fetchData();
|
||||
} else {
|
||||
listingIndex++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue