chore: enchance firecrawl user experience (#5958)

This commit is contained in:
Joel 2024-07-04 15:26:38 +08:00 • committed by GitHub
commit 52e59cf4df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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('')
}
}