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,7 +103,9 @@ export async function crawlStatusController(req: RequestWithAuth<CrawlStatusPara
|
||||||
if (data.length > 0) {
|
if (data.length > 0) {
|
||||||
if (!doneJobs[0].data.pageOptions.includeRawHtml) {
|
if (!doneJobs[0].data.pageOptions.includeRawHtml) {
|
||||||
for (let ii = 0; ii < doneJobs.length; ii++) {
|
for (let ii = 0; ii < doneJobs.length; ii++) {
|
||||||
delete data[ii].rawHtml;
|
if (data[ii]) {
|
||||||
|
delete data[ii].rawHtml;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user