@builttocreate/engine-utils 2.3.2-beta.0.3 → 2.3.2-beta.0.4

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.
@@ -294,6 +294,10 @@ exports.getTemplateWithLookups = getTemplateWithLookups;
294
294
  var isFieldEmpty = function isFieldEmpty(fieldType, fieldValue, fieldOptions) {
295
295
  var isEmpty = false;
296
296
 
297
+ if (fieldType === _FieldTypes["default"].block && (!fieldValue || fieldValue && fieldValue.replace(/\s+/g, '').length == 0)) {
298
+ isEmpty = true;
299
+ }
300
+
297
301
  if (fieldType === _FieldTypes["default"].text && (!fieldValue || fieldValue && fieldValue.replace(/\s+/g, '').length == 0)) {
298
302
  isEmpty = true;
299
303
  } else if (fieldType === _FieldTypes["default"].text && (!fieldValue || fieldValue && fieldValue.replace(/\s+/g, '').length == 0)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builttocreate/engine-utils",
3
- "version": "2.3.2-beta.0.3",
3
+ "version": "2.3.2-beta.0.4",
4
4
  "description": "Utility library for common logic shared across web and mobile",
5
5
  "main": "dist/index.js",
6
6
  "files": [