Skip to content

Commit

Permalink
fix: skip undefined confluence pageContent (#1383)
Browse files Browse the repository at this point in the history
Refs: #1381

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
  • Loading branch information
jazelly and timothycarambat committed May 14, 2024
1 parent 78e3e35 commit d71db22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions collector/utils/extensions/Confluence/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d71db22

Please sign in to comment.