mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
fix properties of undefined issue
This commit is contained in:
parent
dc45c1c58e
commit
ad5af8bdd0
@ -41,7 +41,7 @@ export async function buildReferences(
|
||||
};
|
||||
|
||||
// Track valid web chunks (above minimum length)
|
||||
if (chunk.length >= minChunkLength) {
|
||||
if (chunk?.length >= minChunkLength) {
|
||||
validWebChunkIndices.add(chunkIndex);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user