chore: enchance firecrawl user experience (#5958)

This commit is contained in:
Joel
2024-07-04 15:26:38 +08:00
committed by GitHub
parent 688b8fe114
commit 52e59cf4df
4 changed files with 5 additions and 3 deletions

View File

@@ -118,6 +118,7 @@ const FireCrawl: FC<Props> = ({
...res,
total: Math.min(res.total, parseFloat(crawlOptions.limit as string)),
})
onCheckedCrawlResultChange(res.data || []) // default select the crawl result
await sleep(2500)
return await waitForCrawlFinished(jobId)
}
@@ -162,6 +163,7 @@ const FireCrawl: FC<Props> = ({
}
else {
setCrawlResult(data)
onCheckedCrawlResultChange(data.data || []) // default select the crawl result
setCrawlErrorMessage('')
}
}