@nira-opencrvs/toolkit 1.9.12-rc.982d4e6 → 1.9.12-rc.b3ee8df

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3886,7 +3886,7 @@ function omitHiddenPaginatedFields(formConfig, values, validatorContext, include
3886
3886
  const visibleFields = formConfig.pages.filter((p) => isPageVisible(p, values, validatorContext)).flatMap((p) => p.fields);
3887
3887
  const hiddenFields = formConfig.pages.filter((p) => !isPageVisible(p, values, validatorContext)).flatMap((p) => p.fields);
3888
3888
  const valuesExceptHiddenPage = (0, import_lodash.omitBy)(values, (_2, fieldId) => {
3889
- return hiddenFields.some((f) => f.id === fieldId);
3889
+ return hiddenFields.some((f) => f.id === fieldId) && !visibleFields.some((f) => f.id === fieldId);
3890
3890
  });
3891
3891
  return omitHiddenFields(
3892
3892
  visibleFields,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nira-opencrvs/toolkit",
3
- "version": "1.9.12-rc.982d4e6",
3
+ "version": "1.9.12-rc.b3ee8df",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {