@builttocreate/engine-utils 2.6.0-beta.15 → 2.6.0-beta.16
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 -6
- package/package.json +1 -1
package/dist/joyDocHelper.js
CHANGED
|
@@ -469,14 +469,13 @@ var duplicateDocumentPage = function duplicateDocumentPage(doc, fileId, pageId)
|
|
|
469
469
|
var columnsWithClearColumnData = duplicateField.tableColumns.filter(function (column) {
|
|
470
470
|
return column.clearColumnData;
|
|
471
471
|
});
|
|
472
|
-
|
|
473
|
-
columnsWithClearColumnData.forEach(function (
|
|
474
|
-
|
|
475
|
-
row.cells[
|
|
472
|
+
var nextFieldValue = JSON.parse(JSON.stringify(duplicateField.value));
|
|
473
|
+
columnsWithClearColumnData.forEach(function (column) {
|
|
474
|
+
nextFieldValue.map(function (row) {
|
|
475
|
+
row.cells[column._id] = '';
|
|
476
476
|
});
|
|
477
|
-
duplicateField.value = nextFieldValue;
|
|
478
477
|
});
|
|
479
|
-
|
|
478
|
+
duplicateField.value = nextFieldValue;
|
|
480
479
|
}
|
|
481
480
|
|
|
482
481
|
duplicatedFields.push(duplicateField);
|