diff --git a/src/file/document/body/section-properties/properties/page-borders.ts b/src/file/document/body/section-properties/properties/page-borders.ts index 9477315838..894a805316 100644 --- a/src/file/document/body/section-properties/properties/page-borders.ts +++ b/src/file/document/body/section-properties/properties/page-borders.ts @@ -75,7 +75,7 @@ export class PageBorders extends IgnoreIfEmptyXmlComponent { super("w:pgBorders"); if (!options) { - return; + return this; } if (options.pageBorders) { diff --git a/src/file/paragraph/run/symbol-run.ts b/src/file/paragraph/run/symbol-run.ts index 336e878719..5848016ecc 100644 --- a/src/file/paragraph/run/symbol-run.ts +++ b/src/file/paragraph/run/symbol-run.ts @@ -11,7 +11,7 @@ export class SymbolRun extends Run { if (typeof options === "string") { super({}); this.root.push(new Symbol(options)); - return; + return this; } super(options);