From 54e529b7d31755bba78b192cd9dc79735bf14362 Mon Sep 17 00:00:00 2001 From: Sean Fong Date: Wed, 25 Sep 2024 21:52:29 +0930 Subject: [PATCH] Revert back to use cloneDeep in sdc-assemble --- packages/sdc-assemble/src/utils/assemble.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/sdc-assemble/src/utils/assemble.ts b/packages/sdc-assemble/src/utils/assemble.ts index 38e4f36ed..b48dfbe5d 100644 --- a/packages/sdc-assemble/src/utils/assemble.ts +++ b/packages/sdc-assemble/src/utils/assemble.ts @@ -36,6 +36,7 @@ import { isValidExtensions } from './getProperties'; import { propagateProperties } from './propagate'; +import cloneDeep from 'lodash.clonedeep'; import { getCanonicalUrls } from './canonical'; /** @@ -109,7 +110,7 @@ async function assembleQuestionnaire( fetchQuestionnaireCallback: FetchQuestionnaireCallback, fetchQuestionnaireRequestConfig: any ): Promise { - const parentQuestionnaire = structuredClone(rootQuestionnaire); + const parentQuestionnaire = cloneDeep(rootQuestionnaire); // Get subquestionnaire canonical urls from parent questionnaire items const canonicals: string[] | OperationOutcome = getCanonicalUrls(