Merge pull request #299 from filippomuscolino/fix-duplicated-section
Fix: duplicated generation of last section properties
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user