From d76c5dd8dfa07335494127846b5f162ca24f6db9 Mon Sep 17 00:00:00 2001
From: BrittainJackson7 <brittainjackson7@gmail.com>
Date: Tue, 24 Oct 2023 10:51:15 -0700
Subject: [PATCH] Fix Load More button Fixes #24

---
 src/js/FootprintFetcher.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/js/FootprintFetcher.js b/src/js/FootprintFetcher.js
index 3cbdea2ec..332d2ad90 100644
--- a/src/js/FootprintFetcher.js
+++ b/src/js/FootprintFetcher.js
@@ -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) {
-- 
GitLab