Santiago
01/27/2023, 2:16 PMconst pageRange = pagedData.pageRanges
_.each(pageRange,function(range){
lf.debug("PAGE RANGE OBJ", Object.keys(range));
lf.debug("PAGE INDEX", range.index);
const json = range.toJSON();
lf.debug("PAGE TO JSON INDEX", json.index);
var dataFeed = processProductData(pagedData.fetch({index:range.index}).data);
// lf.debug("After One PAge USAGE", rtf.getRemainingUsage());
})
The issue i'm having is that the range.index is undefined for whatever reason, and when I log the range object the index is there.
Does anybody know what could be happening? is this an NS issue or is the index not reachable dynamically this way and I should use another way to loop the search result pages?ehcanadian
01/27/2023, 2:41 PM_.each(pageRange, function(range, index){
var dataFeed = processProductData(pagedData.fetch({index:index}).data);
})