Skip to content
Snippets Groups Projects
Unverified Commit a3b7239d authored by Ken Kuang's avatar Ken Kuang Committed by GitHub
Browse files

Fix Cannot read properties of undefined (reading 'length') (#1145)

Fix upload failed
parent c65f890a
No related merge requests found
...@@ -22,7 +22,7 @@ async function asPDF({ fullFilePath = "", filename = "" }) { ...@@ -22,7 +22,7 @@ async function asPDF({ fullFilePath = "", filename = "" }) {
doc.metadata?.loc?.pageNumber || "unknown" doc.metadata?.loc?.pageNumber || "unknown"
} --` } --`
); );
if (!doc.pageContent.length) continue; if (!doc.pageContent || !doc.pageContent.length) continue;
pageContent.push(doc.pageContent); pageContent.push(doc.pageContent);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment