@builttocreate/engine-utils 2.7.0-beta.0 → 2.7.0-beta.2

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.
@@ -473,7 +473,7 @@ var duplicateDocumentPage = function duplicateDocumentPage(doc, fileId, pageId)
473
473
  return column.clearData;
474
474
  }).length > 0) {
475
475
  var columnsWithClearData = duplicateField.tableColumns.filter(function (column) {
476
- return column.clearColumnData;
476
+ return column.clearData;
477
477
  });
478
478
  var nextFieldValue = JSON.parse(JSON.stringify(duplicateField.value));
479
479
  columnsWithClearData.forEach(function (column) {
@@ -482,6 +482,8 @@ var duplicateDocumentPage = function duplicateDocumentPage(doc, fileId, pageId)
482
482
  });
483
483
  });
484
484
  duplicateField.value = nextFieldValue;
485
+ } else if (duplicateField.clearData) {
486
+ duplicateField.value = '';
485
487
  }
486
488
 
487
489
  duplicatedFields.push(duplicateField);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builttocreate/engine-utils",
3
- "version": "2.7.0-beta.0",
3
+ "version": "2.7.0-beta.2",
4
4
  "description": "Utility library for common logic shared across web and mobile",
5
5
  "main": "dist/index.js",
6
6
  "files": [