mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-17 08:16:04 +08:00
fix(search): filter docs properly
This commit is contained in:
parent
d036738da0
commit
7265ab7c67
@ -108,7 +108,7 @@ export async function searchHelper(
|
||||
|
||||
// make sure doc.content is not empty
|
||||
const filteredDocs = docs.filter(
|
||||
(doc: { content?: string }) => doc.content && doc.content.trim().length > 0
|
||||
(doc: { content?: string }) => doc && doc.content && doc.content.trim().length > 0
|
||||
);
|
||||
|
||||
if (filteredDocs.length === 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user