Skip to content

Commit

Permalink
Revert back to use cloneDeep in sdc-assemble
Browse files Browse the repository at this point in the history
  • Loading branch information
fongsean committed Sep 25, 2024
1 parent 06bcf49 commit 54e529b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sdc-assemble/src/utils/assemble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import {
isValidExtensions
} from './getProperties';
import { propagateProperties } from './propagate';
import cloneDeep from 'lodash.clonedeep';
import { getCanonicalUrls } from './canonical';

/**
Expand Down Expand Up @@ -109,7 +110,7 @@ async function assembleQuestionnaire(
fetchQuestionnaireCallback: FetchQuestionnaireCallback,
fetchQuestionnaireRequestConfig: any
): Promise<Questionnaire | OperationOutcome> {
const parentQuestionnaire = structuredClone(rootQuestionnaire);
const parentQuestionnaire = cloneDeep(rootQuestionnaire);

// Get subquestionnaire canonical urls from parent questionnaire items
const canonicals: string[] | OperationOutcome = getCanonicalUrls(
Expand Down

0 comments on commit 54e529b

Please sign in to comment.