diff --git a/src/file/xml-components/xml-component.ts b/src/file/xml-components/xml-component.ts index 1f1c6a55c6..17cf152405 100644 --- a/src/file/xml-components/xml-component.ts +++ b/src/file/xml-components/xml-component.ts @@ -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, };