mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-13 02:00:10 +01:00
fix: skip undefined confluence pageContent (#1383)
Refs: https://github.com/Mintplex-Labs/anything-llm/issues/1381 Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
This commit is contained in:
parent
78e3e35d27
commit
d71db22799
@ -101,6 +101,8 @@ async function loadConfluence({ pageUrl, username, accessToken }) {
|
|||||||
fs.mkdirSync(outFolderPath, { recursive: true });
|
fs.mkdirSync(outFolderPath, { recursive: true });
|
||||||
|
|
||||||
docs.forEach((doc) => {
|
docs.forEach((doc) => {
|
||||||
|
if (!doc.pageContent) return;
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
id: v4(),
|
id: v4(),
|
||||||
url: doc.metadata.url + ".page",
|
url: doc.metadata.url + ".page",
|
||||||
|
Loading…
Reference in New Issue
Block a user