From ca05908af72a1da51cca645dc388043f75cb42c6 Mon Sep 17 00:00:00 2001 From: Shane McLaughlin Date: Wed, 18 Aug 2021 14:37:25 -0500 Subject: [PATCH] fix: xml nodes might not be arrays (#424) Co-authored-by: Willie Ruemmele --- 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