Skip to content

Commit d608a89

Browse files
authored
fix: removed mandatory for title and url field uids for different field types in contentful and kept it dynamic
1 parent a7f8eda commit d608a89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

upload-api/migration-contentful/libs/contentTypeMapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const extractAdvancedFields = (
7070
return {
7171
default_value: defaultText,
7272
validationRegex: regrexValue,
73-
mandatory: ["title", "url"].includes(item.id) ? true : item?.required,
73+
mandatory: item?.required,
7474
multiple: singleRef,
7575
unique: uniqueValue,
7676
nonLocalizable: !(item?.localized === true),

0 commit comments

Comments
 (0)