Merged in fix/destination-overview-page (pull request #1423)
fix: typo * fix: typo Approved-by: Erik Tiekstra Approved-by: Fredrik Thorsson
This commit is contained in:
@@ -25,7 +25,7 @@ fragment CardGallery_DestinationOverviewPage on DestinationOverviewPageBlocksCar
|
|||||||
card_groups {
|
card_groups {
|
||||||
filter_identifier
|
filter_identifier
|
||||||
filter_label
|
filter_label
|
||||||
cardConnection {
|
cardsConnection {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
...ContentCardBlock
|
...ContentCardBlock
|
||||||
@@ -63,7 +63,7 @@ fragment CardGallery_DestinationOverviewPage on DestinationOverviewPageBlocksCar
|
|||||||
fragment CardGallery_DestinationOverviewPageRefs on DestinationOverviewPageBlocksCardGallery {
|
fragment CardGallery_DestinationOverviewPageRefs on DestinationOverviewPageBlocksCardGallery {
|
||||||
card_gallery {
|
card_gallery {
|
||||||
card_groups {
|
card_groups {
|
||||||
cardConnection {
|
cardsConnection {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
...ContentCardBlockRef
|
...ContentCardBlockRef
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export const cardGallerySchema = z.object({
|
|||||||
z.object({
|
z.object({
|
||||||
filter_identifier: z.nativeEnum(CardGalleryFilterEnum),
|
filter_identifier: z.nativeEnum(CardGalleryFilterEnum),
|
||||||
filter_label: z.string(),
|
filter_label: z.string(),
|
||||||
cardConnection: z.object({
|
cardsConnection: z.object({
|
||||||
edges: z.array(z.object({ node: contentCardSchema })),
|
edges: z.array(z.object({ node: contentCardSchema })),
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
@@ -54,7 +54,7 @@ export const cardGallerySchema = z.object({
|
|||||||
heading: data.heading,
|
heading: data.heading,
|
||||||
filterCategories,
|
filterCategories,
|
||||||
cards: data.card_groups.flatMap((group) =>
|
cards: data.card_groups.flatMap((group) =>
|
||||||
group.cardConnection.edges
|
group.cardsConnection.edges
|
||||||
.map((edge) => transformContentCard(edge.node))
|
.map((edge) => transformContentCard(edge.node))
|
||||||
.filter((card): card is NonNullable<typeof card> => card !== null)
|
.filter((card): card is NonNullable<typeof card> => card !== null)
|
||||||
.map((card) => ({
|
.map((card) => ({
|
||||||
@@ -81,7 +81,7 @@ export const cardGalleryRefsSchema = z.object({
|
|||||||
card_gallery: z.object({
|
card_gallery: z.object({
|
||||||
card_groups: z.array(
|
card_groups: z.array(
|
||||||
z.object({
|
z.object({
|
||||||
cardConnection: z.object({
|
cardsConnection: z.object({
|
||||||
edges: z.array(
|
edges: z.array(
|
||||||
z.object({
|
z.object({
|
||||||
node: contentCardRefSchema,
|
node: contentCardRefSchema,
|
||||||
|
|||||||
Reference in New Issue
Block a user