From c5b004166d75672ea86e1d0731b511716fc10caf Mon Sep 17 00:00:00 2001 From: Dolan Date: Mon, 17 Sep 2018 20:18:31 +0100 Subject: [PATCH] Add back comp null check --- src/file/xml-components/xml-component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, };