fix: fetch by locale in loyaltyPage

This commit is contained in:
Christel Westerberg
2024-05-03 08:18:04 +02:00
parent 58d2963d6a
commit e48d031647

View File

@@ -4,7 +4,7 @@
#import "../Fragments/PageLink/LoyaltyPageLink.graphql"
query GetLoyaltyPage($locale: String!, $url: String!) {
all_loyalty_page(where: { url: $url, locale: $locale }) {
all_loyalty_page(where: { url: $url }, locale: $locale) {
items {
blocks {
__typename
@@ -58,8 +58,6 @@ query GetLoyaltyPage($locale: String!, $url: String!) {
node {
__typename
...Image
...LoyaltyPageLink
...ContentPageLink
}
}
totalCount
@@ -95,8 +93,6 @@ query GetLoyaltyPage($locale: String!, $url: String!) {
node {
__typename
...Image
...LoyaltyPageLink
...ContentPageLink
}
}
totalCount