diff --git a/src/js/FootprintFetcher.js b/src/js/FootprintFetcher.js index 3cbdea2ec886017624adfaa21e4ae2b1d7e5275d..332d2ad90fb8b320285ce8759bf1ba8e9eac9bd8 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) {