We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38d061d commit 7a0a83eCopy full SHA for 7a0a83e
upload-api/migration-contentful/libs/extractContentTypes.js
@@ -70,7 +70,7 @@ const saveContentType = (contentTypes, editorInterface, prefix) => {
70
path.join(
71
contentfulFolderPath,
72
`${
73
- (content.name.charAt(0).toUpperCase() + content.name.slice(1)).replace(/[^\w\s]/g, "")
+ (content?.name?.charAt(0)?.toUpperCase() + content?.name?.slice(1))?.replace(/[^\w\s]/g, "")
74
}.json`
75
),
76
JSON.stringify(jsonObj, null, 4)
0 commit comments