diff --git a/packages/engine-render/src/components/docs/layout/tools.ts b/packages/engine-render/src/components/docs/layout/tools.ts index d3bb483857..e7cd710da3 100644 --- a/packages/engine-render/src/components/docs/layout/tools.ts +++ b/packages/engine-render/src/components/docs/layout/tools.ts @@ -486,7 +486,7 @@ export function updateInlineDrawingCoordsAndBorder(ctx: ILayoutContext, pages: I const lastDivide = line.divides[line.divides.length - 1]; const lastGlyph = lastDivide.glyphGroup[lastDivide.glyphGroup.length - 1]; - if (lastGlyph.streamType === DataStreamTreeTokenType.PARAGRAPH && paragraphStyle?.borderBottom) { + if (lastGlyph?.streamType === DataStreamTreeTokenType.PARAGRAPH && paragraphStyle?.borderBottom) { line.borderBottom = paragraphStyle.borderBottom; } }