Skip to content
Snippets Groups Projects
Commit d76c5dd8 authored by BrittainJackson7's avatar BrittainJackson7
Browse files

Fix Load More button

Fixes #24
parent f6a0bc7f
No related branches found
No related tags found
No related merge requests found
......@@ -146,12 +146,12 @@ export async function FetchStepRemainder(featureCollection, myStep) {
if (skip !== 0) {
fullResponse = await FetchFootprints(featureCollection, myPage, myStep);
if (!fullResponse || !fullResponse.features) {
if (!fullResponse) {
console.error('Invalid fullResponse:', fullResponse);
return [];
}
newFeatures = fullResponse.features;
newFeatures = fullResponse;
// Handle edge case where you may have requested more features than still available
if (newFeatures.length < myStep) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment