Commit d76c5dd8 authored by BrittainJackson7's avatar BrittainJackson7
Browse files

Fix Load More button

Fixes #24
parent f6a0bc7f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {