From d71db2279959d7c63bfb596f0593f0f56e7f301b Mon Sep 17 00:00:00 2001 From: jazelly Date: Wed, 15 May 2024 02:52:13 +0930 Subject: [PATCH] fix: skip undefined confluence pageContent (#1383) Refs: https://github.com/Mintplex-Labs/anything-llm/issues/1381 Co-authored-by: Timothy Carambat --- collector/utils/extensions/Confluence/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/collector/utils/extensions/Confluence/index.js b/collector/utils/extensions/Confluence/index.js index 5bb44dee..da918b2d 100644 --- a/collector/utils/extensions/Confluence/index.js +++ b/collector/utils/extensions/Confluence/index.js @@ -101,6 +101,8 @@ async function loadConfluence({ pageUrl, username, accessToken }) { fs.mkdirSync(outFolderPath, { recursive: true }); docs.forEach((doc) => { + if (!doc.pageContent) return; + const data = { id: v4(), url: doc.metadata.url + ".page",