Add back comp null check

This commit is contained in:
Dolan
2018-09-17 20:18:31 +01:00
parent 2f43600daf
commit c5b004166d

View File

@ -24,7 +24,7 @@ export abstract class XmlComponent extends BaseXmlComponent {
}
return comp;
})
.filter((comp) => comp); // Exclude null, undefined, and empty strings
.filter((comp) => comp !== null); // Exclude null, undefined, and empty strings
return {
[this.rootKey]: children,
};