@opencrvs/toolkit 2.0.4 → 2.0.5

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/create-countryconfig",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Scaffold a new OpenCRVS country configuration",
5
5
  "bin": {
6
6
  "create-countryconfig": "./index.js"
@@ -4158,7 +4158,7 @@ function isFieldVisible(field3, form, context) {
4158
4158
  }
4159
4159
  function isFieldEmptyAndNotRequired(field3, form) {
4160
4160
  const fieldValue = form[field3.id];
4161
- return !field3.required && (fieldValue === void 0 || fieldValue === "" || fieldValue && typeof fieldValue === "object" && Object.values(fieldValue).every((v) => v === void 0 || v === ""));
4161
+ return !field3.required && (fieldValue === void 0 || fieldValue === null || fieldValue === "" || fieldValue && typeof fieldValue === "object" && Object.values(fieldValue).every((v) => v === void 0 || v === ""));
4162
4162
  }
4163
4163
  function isFieldEnabled(field3, form, context) {
4164
4164
  return isFieldConditionMet(field3, form, ConditionalType.ENABLE, context);
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {
Binary file