Skip to content

Commit 48158fc

Browse files
Merge pull request #86 from unapplicable/hotspots-handling-multiple-pages
Fix hotspots handling with multiple pages of results
2 parents d12f90e + 3cda966 commit 48158fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ function logError(context, error){
337337
page++;
338338
const json = JSON.parse(response.body);
339339
nbResults = json.hotspots.length;
340-
data.hotspotKeys = json.hotspots.map(hotspot => hotspot.key);
340+
data.hotspotKeys.push(...json.hotspots.map(hotspot => hotspot.key));
341341
} catch (error) {
342342
logError("getting hotspots list", error);
343343
return null;

0 commit comments

Comments
 (0)