This commit is contained in:
Dolan
2017-03-09 22:57:37 +00:00
parent 2b28dd42ee
commit 06353a6977

View File

@ -16,11 +16,11 @@ export abstract class XmlComponent extends BaseXmlComponent {
if (comp instanceof BaseXmlComponent) { if (comp instanceof BaseXmlComponent) {
return comp.toXml(); return comp.toXml();
} }
return comp return comp;
}).filter((comp) => comp); // Exclude null, undefined, and empty strings }).filter((comp) => comp); // Exclude null, undefined, and empty strings
return { return {
[this.rootKey]: ret, [this.rootKey]: ret,
} };
} }
} }