From 9a802a6f5f5a26dc367cea6bb8cef06f08187ddb Mon Sep 17 00:00:00 2001 From: mshanemc Date: Mon, 16 Aug 2021 15:40:44 -0500 Subject: [PATCH] fix: xml nodes might not be arrays --- src/convert/convertContext.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/convert/convertContext.ts b/src/convert/convertContext.ts index 266a7d7a57..b06780c877 100644 --- a/src/convert/convertContext.ts +++ b/src/convert/convertContext.ts @@ -11,6 +11,7 @@ import { JsToXml } from './streams'; import { META_XML_SUFFIX, XML_NS_KEY, XML_NS_URL } from '../common'; import { getString, JsonArray, JsonMap } from '@salesforce/ts-types'; import { ComponentSet } from '../collections'; +import { normalizeToArray } from '../utils/collections'; import { RecompositionStrategy } from '../registry/types'; import { isEmpty } from '@salesforce/kit'; @@ -89,7 +90,8 @@ class RecompositionFinalizer extends ConvertTransactionFinalizer