Skip to content

Commit

Permalink
fix: explicitly set the model id for default content
Browse files Browse the repository at this point in the history
  • Loading branch information
buuhuu committed Jul 24, 2024
1 parent c06150e commit 285ed1b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
12 changes: 9 additions & 3 deletions component-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"xwalk": {
"page": {
"resourceType": "core/franklin/components/title/v1/title",
"template": {}
"template": {
"model": "title"
}
}
}
}
Expand All @@ -47,7 +49,9 @@
"xwalk": {
"page": {
"resourceType": "core/franklin/components/button/v1/button",
"template": {}
"template": {
"model": "button"
}
}
}
}
Expand All @@ -65,7 +69,9 @@
"xwalk": {
"page": {
"resourceType": "core/franklin/components/section/v1/section",
"template": {}
"template": {
"model": "section"
}
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion models/_button.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"xwalk": {
"page": {
"resourceType": "core/franklin/components/button/v1/button",
"template": {}
"template": {
"model": "button"
}
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion models/_section.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"xwalk": {
"page": {
"resourceType": "core/franklin/components/section/v1/section",
"template": {}
"template": {
"model": "section"
}
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions models/_text.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@
}
}
],
"models": [

]
"models": []
}
4 changes: 3 additions & 1 deletion models/_title.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"xwalk": {
"page": {
"resourceType": "core/franklin/components/title/v1/title",
"template": {}
"template": {
"model": "title"
}
}
}
}
Expand Down

0 comments on commit 285ed1b

Please sign in to comment.