diff --git a/CHANGELOG.md b/CHANGELOG.md index 493ae17897..c50a4ecb1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ - Only show items with values in review [#5192](https://github.com/opencrvs/opencrvs-core/pull/5192) - Fix prefix text overlap issue in form text inputs - **Staged files getting reset on precommit hook failure** We were running lint-staged separately on each package using lerna which potentially created a race condition causing staged changes to get lost on failure. Now we are running lint-staged directly without depending on lerna. ***This is purely a DX improvement without affecting any functionality of the system*** +- Fix `informantType` missing in template object which prevented rendering informant relationship data in the certificates [#5952](https://github.com/opencrvs/opencrvs-core/issues/5952) ### Breaking changes diff --git a/packages/client/src/forms/register/mappings/query/field-mappings.ts b/packages/client/src/forms/register/mappings/query/field-mappings.ts index 98b898271e..1628ff15b4 100644 --- a/packages/client/src/forms/register/mappings/query/field-mappings.ts +++ b/packages/client/src/forms/register/mappings/query/field-mappings.ts @@ -109,6 +109,9 @@ export const fieldValueTransformer = sectionId: SectionId, field: IFormField ) => { + if (!(sectionId in transformedData)) { + transformedData[sectionId] = {} + } if (queryData[sectionId] && queryData[sectionId][transformedFieldName]) { transformedData[sectionId][field.name] = queryData[sectionId][transformedFieldName]