diff --git a/packages/contentstack-import/package.json b/packages/contentstack-import/package.json index d179b091ed..f92f51477c 100644 --- a/packages/contentstack-import/package.json +++ b/packages/contentstack-import/package.json @@ -96,4 +96,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 2704f1f764..a94ae3d8da 100644 --- a/packages/contentstack-import/src/utils/entries-helper.ts +++ b/packages/contentstack-import/src/utils/entries-helper.ts @@ -28,9 +28,7 @@ export const lookupEntries = function ( jsonRteData.children.forEach((element: any) => { 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 b058b44f18..e30c9efcb0 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 +}