fix: append large page text safely
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user