@nascentdigital/funnel-cms 8.0.3 → 8.0.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.
|
@@ -474,7 +474,7 @@ class ContentfulPageClient {
|
|
|
474
474
|
targetModel.sync();
|
|
475
475
|
console.debug('[ContentfulPageClient/duplicate] about to create page with data', targetData);
|
|
476
476
|
// create target page using content of source
|
|
477
|
-
const targetEntry = await cms.createEntry(models_1.ContentfulPageData.contentType, Object.assign(Object.assign({}, targetData), { references: ((_c = sourceEntry.references) !== null && _c !== void 0 ? _c : []).map(link => {
|
|
477
|
+
const targetEntry = await cms.createEntry(models_1.ContentfulPageData.contentType, Object.assign(Object.assign({}, targetData), { valid: !sourcePage.errors, references: ((_c = sourceEntry.references) !== null && _c !== void 0 ? _c : []).map(link => {
|
|
478
478
|
var _a, _b;
|
|
479
479
|
// replace entry ids if mapped
|
|
480
480
|
if (link.sys.linkType === 'Entry') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nascentdigital/funnel-cms",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/nascentdigital/funnel.git",
|
|
6
6
|
"directory": "libs/cms"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"ts-jest": "^29",
|
|
49
49
|
"type-fest": "^4"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "5375c943981bd14ac211a94f5455fdc1d5ba5098"
|
|
52
52
|
}
|