From 34e6b564958601515f3f749cb9858f094f729074 Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Thu, 6 Jun 2024 22:57:21 +0100 Subject: [PATCH 1/2] fix: added rte field missing fix --- packages/contentstack-import/src/import/modules/entries.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/contentstack-import/src/import/modules/entries.ts b/packages/contentstack-import/src/import/modules/entries.ts index bae0769e41..6150ee4317 100644 --- a/packages/contentstack-import/src/import/modules/entries.ts +++ b/packages/contentstack-import/src/import/modules/entries.ts @@ -431,9 +431,9 @@ export default class EntriesImport extends BaseClass { if (this.jsonRteCTsWithRef.indexOf(cTUid) > -1) { entry = removeEntryRefsFromJSONRTE(entry, contentType.schema); } - + // TODO: Confirm if both checks are required for rte. if (this.rteCTs.indexOf(cTUid) > -1) { - entry = removeEntryRefsFromJSONRTE(entry, contentType.schema); + entry = removeUidsFromJsonRteFields(entry, contentType.schema); } if (this.rteCTsWithRef.indexOf(cTUid) > -1) { From e63cdeaaa00f39a9df61b566cb3534d39e57fc58 Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Tue, 18 Jun 2024 15:07:18 +0100 Subject: [PATCH 2/2] fix: removed rteCTs check --- packages/contentstack-import/src/import/modules/entries.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/contentstack-import/src/import/modules/entries.ts b/packages/contentstack-import/src/import/modules/entries.ts index 6150ee4317..f6f119954d 100644 --- a/packages/contentstack-import/src/import/modules/entries.ts +++ b/packages/contentstack-import/src/import/modules/entries.ts @@ -431,11 +431,6 @@ export default class EntriesImport extends BaseClass { if (this.jsonRteCTsWithRef.indexOf(cTUid) > -1) { entry = removeEntryRefsFromJSONRTE(entry, contentType.schema); } - // TODO: Confirm if both checks are required for rte. - if (this.rteCTs.indexOf(cTUid) > -1) { - entry = removeUidsFromJsonRteFields(entry, contentType.schema); - } - if (this.rteCTsWithRef.indexOf(cTUid) > -1) { entry = removeEntryRefsFromJSONRTE(entry, contentType.schema); }