diff --git a/packages/contentstack-import/package.json b/packages/contentstack-import/package.json index 162481efc6..4e9d7080eb 100644 --- a/packages/contentstack-import/package.json +++ b/packages/contentstack-import/package.json @@ -95,4 +95,4 @@ } }, "repository": "https://github.com/contentstack/cli" -} \ No newline at end of file +} diff --git a/packages/contentstack-import/src/utils/asset-helper.ts b/packages/contentstack-import/src/utils/asset-helper.ts index 6b46050c42..7e7cc9e257 100644 --- a/packages/contentstack-import/src/utils/asset-helper.ts +++ b/packages/contentstack-import/src/utils/asset-helper.ts @@ -205,8 +205,7 @@ export const lookupAssets = function ( jsonRteData.children.forEach((element: any) => { if (element.type) { switch (element.type) { - case 'a': - case 'p': { + default: { if (element.children && element.children.length > 0) { gatherJsonRteAssetIds(element); } diff --git a/packages/contentstack-import/src/utils/entries-helper.ts b/packages/contentstack-import/src/utils/entries-helper.ts index 8e15473138..8b514c416c 100644 --- a/packages/contentstack-import/src/utils/entries-helper.ts +++ b/packages/contentstack-import/src/utils/entries-helper.ts @@ -21,9 +21,7 @@ export const lookupEntries = function (data: any, mappedUids: Record { if (element.type) { switch (element.type) { - case 'a': - case 'span': - case 'p': { + default: { if (element.children && element.children.length > 0) { gatherJsonRteEntryIds(element); } diff --git a/packages/contentstack-seed/package.json b/packages/contentstack-seed/package.json index bd58db3217..99bf2df45f 100644 --- a/packages/contentstack-seed/package.json +++ b/packages/contentstack-seed/package.json @@ -73,4 +73,4 @@ "version": "oclif readme && git add README.md", "clean": "rm -rf ./node_modules tsconfig.build.tsbuildinfo" } -} \ No newline at end of file +}