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[] = []; const bodyParagraphs: string[] = [];
for (const contentId of contentIds) { for (const contentId of contentIds) {
bodyParagraphs.push( appendItems(
...extractGraphTextSafely(context, space, contentId, 'page content') bodyParagraphs,
extractGraphTextSafely(context, space, contentId, 'page content')
); );
} }
let text = bodyParagraphs let text = bodyParagraphs