Merge pull request #299 from filippomuscolino/fix-duplicated-section

Fix: duplicated generation of last section properties
This commit is contained in:
Dolan
2019-04-05 01:07:10 +01:00
committed by GitHub

View File

@ -37,7 +37,7 @@ export class Body extends XmlComponent {
}
public prepForXml(): IXmlableObject | undefined {
if (this.sections.length === 1) {
this.root.push(this.sections[0]);
this.root.push(this.sections.pop() as SectionProperties);
}
return super.prepForXml();