@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.
package/dist/events/index.js
CHANGED
|
@@ -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
|
Binary file
|