@builttocreate/engine-utils 2.7.0-beta.2 → 2.7.0-beta.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.
@@ -465,24 +465,24 @@ var duplicateDocumentPage = function duplicateDocumentPage(doc, fileId, pageId)
465
465
  _id: (0, _generateObjectId["default"])()
466
466
  });
467
467
  /**
468
- * Logic to make the table field blank if clearColumnData is true for the column
468
+ * Logic to make the table field blank if blockImport is true for the column
469
469
  */
470
470
 
471
471
 
472
472
  if ((duplicateField.type === _FieldTypes["default"].table || duplicateField.type === _FieldTypes["default"].inputGroup) && duplicateField.tableColumns.length > 0 && duplicateField.tableColumns.filter(function (column) {
473
- return column.clearData;
473
+ return column.blockImport;
474
474
  }).length > 0) {
475
- var columnsWithClearData = duplicateField.tableColumns.filter(function (column) {
476
- return column.clearData;
475
+ var columnsWithBlockImport = duplicateField.tableColumns.filter(function (column) {
476
+ return column.blockImport;
477
477
  });
478
478
  var nextFieldValue = JSON.parse(JSON.stringify(duplicateField.value));
479
- columnsWithClearData.forEach(function (column) {
479
+ columnsWithBlockImport.forEach(function (column) {
480
480
  nextFieldValue.forEach(function (row) {
481
481
  row.cells[column._id] = '';
482
482
  });
483
483
  });
484
484
  duplicateField.value = nextFieldValue;
485
- } else if (duplicateField.clearData) {
485
+ } else if (duplicateField.blockImport && duplicateField.type !== _FieldTypes["default"].chart) {
486
486
  duplicateField.value = '';
487
487
  }
488
488
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builttocreate/engine-utils",
3
- "version": "2.7.0-beta.2",
3
+ "version": "2.7.0-beta.4",
4
4
  "description": "Utility library for common logic shared across web and mobile",
5
5
  "main": "dist/index.js",
6
6
  "files": [