Fix duplicated generation of last section properties

This commit is contained in:
fmuscolino
2019-04-04 17:43:54 +02:00
parent b99d1fc129
commit 272e2496f4

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();