diff --git a/src/lib/js/parsing/processing/builder.js b/src/lib/js/parsing/processing/builder.js index f863c2f..6ec9acd 100644 --- a/src/lib/js/parsing/processing/builder.js +++ b/src/lib/js/parsing/processing/builder.js @@ -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, }; } diff --git a/src/routes/queries.js b/src/routes/queries.js index 9e40e62..d5ae69d 100755 --- a/src/routes/queries.js +++ b/src/routes/queries.js @@ -139,6 +139,7 @@ query ($page: String = "navbar.home", $language: String = "de-DE") { } ... on buttons { color + type translations( filter: { languages_code: { code: { _eq: $language } } } ) {