From e48d03164719c31d1f6f4f8675d956b7f4a459a4 Mon Sep 17 00:00:00 2001 From: Christel Westerberg Date: Fri, 3 May 2024 08:18:04 +0200 Subject: [PATCH] fix: fetch by locale in loyaltyPage --- lib/graphql/Query/LoyaltyPage.graphql | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/graphql/Query/LoyaltyPage.graphql b/lib/graphql/Query/LoyaltyPage.graphql index 72cebe0e4..7cde6c10e 100644 --- a/lib/graphql/Query/LoyaltyPage.graphql +++ b/lib/graphql/Query/LoyaltyPage.graphql @@ -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