Skip to content
Snippets Groups Projects
Unverified Commit d71db227 authored by jazelly's avatar jazelly Committed by GitHub
Browse files

fix: skip undefined confluence pageContent (#1383)

parent 78e3e35d
Branches
Tags
No related merge requests found
...@@ -101,6 +101,8 @@ async function loadConfluence({ pageUrl, username, accessToken }) { ...@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment