Skip to content

Commit

Permalink
Merge pull request #1048 from contentstack/fix/CS-41462
Browse files Browse the repository at this point in the history
Fix/cs 41462
  • Loading branch information
netrajpatel authored Sep 21, 2023
2 parents 488f5e8 + 0c89d20 commit 6bd3b61
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/contentstack-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@
}
},
"repository": "https://github.com/contentstack/cli"
}
}
3 changes: 1 addition & 2 deletions packages/contentstack-import/src/utils/asset-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 1 addition & 3 deletions packages/contentstack-import/src/utils/entries-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ export const lookupEntries = function (data: any, mappedUids: Record<string, any
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);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-seed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@
"version": "oclif readme && git add README.md",
"clean": "rm -rf ./node_modules tsconfig.build.tsbuildinfo"
}
}
}

0 comments on commit 6bd3b61

Please sign in to comment.