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 {
|
public prepForXml(): IXmlableObject | undefined {
|
||||||
if (this.sections.length === 1) {
|
if (this.sections.length === 1) {
|
||||||
this.root.push(this.sections[0]);
|
this.root.push(this.sections.pop() as SectionProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
return super.prepForXml();
|
return super.prepForXml();
|
||||||
|
Reference in New Issue
Block a user