@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.
- package/dist/events/index.js +1 -1
- package/package.json +1 -1
package/dist/events/index.js
CHANGED
|
@@ -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,
|