fix: remove else statement

This commit is contained in:
karishmas6
2024-08-17 23:32:55 +05:30
parent 4abc2cf9ba
commit f4511b7abc

View File

@@ -373,9 +373,6 @@ async function clickNextPagination(selector, scrapedData, limit) {
// Add the record to the scrapedData array
scrapedData.push(record);
}
else {
break; // No more items to load or no pagination
}
}
return scrapedData.slice(0, limit); // Return only the limited number of records