From 0e16eb13f44e510f2befb703f74042b3bd326f20 Mon Sep 17 00:00:00 2001 From: tahmidrahman-dsi Date: Mon, 28 Oct 2024 17:35:00 +0600 Subject: [PATCH 1/2] fix: empty section handle in `fieldValueTransformer` --- .../client/src/forms/register/mappings/query/field-mappings.ts | 3 +++ 1 file changed, 3 insertions(+) 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 98b898271e0..1628ff15b41 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] From 8445d5984a24558961b8abf73251808a21464f91 Mon Sep 17 00:00:00 2001 From: tahmidrahman-dsi Date: Mon, 28 Oct 2024 18:06:43 +0600 Subject: [PATCH 2/2] chore: update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 493ae178976..c50a4ecb1a3 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