diff --git a/src/file/xml-components/xml-component.ts b/src/file/xml-components/xml-component.ts index a3d0a6186f..1f1c6a55c6 100644 --- a/src/file/xml-components/xml-component.ts +++ b/src/file/xml-components/xml-component.ts @@ -3,7 +3,7 @@ import { IXmlableObject } from "./xmlable-object"; export { BaseXmlComponent }; export abstract class XmlComponent extends BaseXmlComponent { - public root: Array; + protected root: Array; constructor(rootKey: string, initContent?: XmlComponent) { super(rootKey); @@ -24,7 +24,7 @@ export abstract class XmlComponent extends BaseXmlComponent { } return comp; }) - .filter((comp) => comp !== null); // Exclude null, undefined, and empty strings + .filter((comp) => comp); // Exclude null, undefined, and empty strings return { [this.rootKey]: children, };