mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
fix(crawl-status): handle null data when purging rawHtml
This commit is contained in:
parent
4f92bb4bf4
commit
c8e0bb93ea
|
@ -103,10 +103,12 @@ export async function crawlStatusController(req: RequestWithAuth<CrawlStatusPara
|
|||
if (data.length > 0) {
|
||||
if (!doneJobs[0].data.pageOptions.includeRawHtml) {
|
||||
for (let ii = 0; ii < doneJobs.length; ii++) {
|
||||
if (data[ii]) {
|
||||
delete data[ii].rawHtml;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
res.status(200).json({
|
||||
status,
|
||||
|
|
Loading…
Reference in New Issue
Block a user