@builttocreate/engine-utils 2.7.0-beta.2 → 2.7.0-beta.3
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/joyDocHelper.js +5 -5
- package/package.json +1 -1
package/dist/joyDocHelper.js
CHANGED
|
@@ -470,19 +470,19 @@ var duplicateDocumentPage = function duplicateDocumentPage(doc, fileId, pageId)
|
|
|
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.
|
|
473
|
+
return column.blockImport;
|
|
474
474
|
}).length > 0) {
|
|
475
|
-
var
|
|
476
|
-
return column.
|
|
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
|
-
|
|
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.
|
|
485
|
+
} else if (duplicateField.blockImport) {
|
|
486
486
|
duplicateField.value = '';
|
|
487
487
|
}
|
|
488
488
|
|