diff --git a/ts/docx/paragraph/index.ts b/ts/docx/paragraph/index.ts index 66449451ee..51815ec904 100644 --- a/ts/docx/paragraph/index.ts +++ b/ts/docx/paragraph/index.ts @@ -98,12 +98,12 @@ export class Paragraph extends XmlComponent { } public thematicBreak(): Paragraph { - this.properties.push(new ThematicBreak()); + this.root.push(new ThematicBreak()); return this; } public pageBreak(): Paragraph { - this.properties.push(new PageBreak()); + this.root.push(new PageBreak()); return this; }