Skip to content

Commit 153f49b

Browse files
Merge pull request #846 from contentstack/bugfix/cmg-764
code added to set content type default value for link datatype
2 parents 2df121d + ee92669 commit 153f49b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/src/utils/content-type-creator.utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,8 @@ const convertToSchemaFormate = ({ field, advanced = false, marketPlacePath, keyM
598598
"field_metadata": {
599599
description: "",
600600
"default_value": {
601-
"title": "",
602-
"url": '',
601+
"title": field?.advanced?.title ?? '',
602+
"url": field?.advanced?.url ?? '',
603603
}
604604
},
605605
"format": field?.advanced?.validationRegex ?? '',

0 commit comments

Comments
 (0)