fix: append large page text safely

This commit is contained in:
2026-07-22 20:05:45 +02:00
parent 54740cd554
commit 50268cb185

View File

@@ -188,8 +188,9 @@ function parsePage(context: OneContext, space: ObjectSpace): PageWithTextDto {
const bodyParagraphs: string[] = [];
for (const contentId of contentIds) {
bodyParagraphs.push(
...extractGraphTextSafely(context, space, contentId, 'page content')
appendItems(
bodyParagraphs,
extractGraphTextSafely(context, space, contentId, 'page content')
);
}
let text = bodyParagraphs