From d995dcf0aadcc921ff7ce03abce3770b54c17c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Thu, 27 Feb 2025 06:31:02 +0000 Subject: [PATCH] Merged in fix/destination-overview-page (pull request #1423) fix: typo * fix: typo Approved-by: Erik Tiekstra Approved-by: Fredrik Thorsson --- .../lib/graphql/Fragments/Blocks/CardGallery.graphql | 4 ++-- .../routers/contentstack/schemas/blocks/cardGallery.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/CardGallery.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/CardGallery.graphql index 6540695c5..3a6796e0e 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/CardGallery.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/CardGallery.graphql @@ -25,7 +25,7 @@ fragment CardGallery_DestinationOverviewPage on DestinationOverviewPageBlocksCar card_groups { filter_identifier filter_label - cardConnection { + cardsConnection { edges { node { ...ContentCardBlock @@ -63,7 +63,7 @@ fragment CardGallery_DestinationOverviewPage on DestinationOverviewPageBlocksCar fragment CardGallery_DestinationOverviewPageRefs on DestinationOverviewPageBlocksCardGallery { card_gallery { card_groups { - cardConnection { + cardsConnection { edges { node { ...ContentCardBlockRef diff --git a/apps/scandic-web/server/routers/contentstack/schemas/blocks/cardGallery.ts b/apps/scandic-web/server/routers/contentstack/schemas/blocks/cardGallery.ts index 469c7b47b..1a8261bfe 100644 --- a/apps/scandic-web/server/routers/contentstack/schemas/blocks/cardGallery.ts +++ b/apps/scandic-web/server/routers/contentstack/schemas/blocks/cardGallery.ts @@ -27,7 +27,7 @@ export const cardGallerySchema = z.object({ z.object({ filter_identifier: z.nativeEnum(CardGalleryFilterEnum), filter_label: z.string(), - cardConnection: z.object({ + cardsConnection: z.object({ edges: z.array(z.object({ node: contentCardSchema })), }), }) @@ -54,7 +54,7 @@ export const cardGallerySchema = z.object({ heading: data.heading, filterCategories, cards: data.card_groups.flatMap((group) => - group.cardConnection.edges + group.cardsConnection.edges .map((edge) => transformContentCard(edge.node)) .filter((card): card is NonNullable => card !== null) .map((card) => ({ @@ -81,7 +81,7 @@ export const cardGalleryRefsSchema = z.object({ card_gallery: z.object({ card_groups: z.array( z.object({ - cardConnection: z.object({ + cardsConnection: z.object({ edges: z.array( z.object({ node: contentCardRefSchema,