From fcbfed9068f327926095b3b714a6deafdd0c5cec Mon Sep 17 00:00:00 2001 From: Dolan Date: Fri, 14 Sep 2018 02:33:36 +0100 Subject: [PATCH] Revert code --- src/file/xml-components/xml-component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, };