@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.
- package/dist/joyDocHelper.js +3 -1
- package/package.json +1 -1
package/dist/joyDocHelper.js
CHANGED
|
@@ -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.
|
|
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);
|