mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-10 17:00:11 +01:00
Fix Cannot read properties of undefined (reading 'length') (#1145)
Fix upload failed
This commit is contained in:
parent
c65f890afc
commit
a3b7239d05
@ -22,7 +22,7 @@ async function asPDF({ fullFilePath = "", filename = "" }) {
|
||||
doc.metadata?.loc?.pageNumber || "unknown"
|
||||
} --`
|
||||
);
|
||||
if (!doc.pageContent.length) continue;
|
||||
if (!doc.pageContent || !doc.pageContent.length) continue;
|
||||
pageContent.push(doc.pageContent);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user