mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 11:00:55 +03:00
should validate .pageContent
This commit is contained in:
@@ -71,7 +71,7 @@ class InMemoryVectorStore_VectorStores implements INode {
|
||||
const flattenDocs = docs && docs.length ? flatten(docs) : []
|
||||
const finalDocs = []
|
||||
for (let i = 0; i < flattenDocs.length; i += 1) {
|
||||
if (flattenDocs[i] !== undefined) {
|
||||
if (flattenDocs[i] !== undefined && flattenDocs[i].pageContent !== undefined) {
|
||||
finalDocs.push(new Document(flattenDocs[i]))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user