mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-18 04:25:54 +08:00
Update index.ts
This commit is contained in:
parent
575ddc9e6e
commit
8916fec66c
@ -278,7 +278,7 @@ export class WebScraperDataProvider {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
if (this.mode === "single_urls" && documents.length > 0) {
|
if (this.mode === "single_urls" && documents.length > 0) {
|
||||||
documents[0].metadata.sitemap = sitemapData;
|
documents[0].metadata.sitemap = sitemapData ?? undefined;
|
||||||
} else {
|
} else {
|
||||||
documents = await this.getSitemapData(this.urls[0], documents);
|
documents = await this.getSitemapData(this.urls[0], documents);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user