Skip to content

Commit

Permalink
Merge pull request #830 from CorrelAid/582-making-support-for-correla…
Browse files Browse the repository at this point in the history
…id-more-present

fix add type to button schema
  • Loading branch information
jstet authored Dec 18, 2024
2 parents 7c02518 + a1b7916 commit e68bae2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/js/parsing/processing/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function processButtons(section) {
text: section.translations[0].text,
href: section.translations[0].link,
color: `bg-${section.color}`,
type: section.translations[0].type,
type: section.type,
};
}

Expand Down
1 change: 1 addition & 0 deletions src/routes/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ query ($page: String = "navbar.home", $language: String = "de-DE") {
}
... on buttons {
color
type
translations(
filter: { languages_code: { code: { _eq: $language } } }
) {
Expand Down

0 comments on commit e68bae2

Please sign in to comment.