Merged in fix/SW-1532-make-link-nullable (pull request #2677)

fix/SW-1532: make link nullable

* fix/SW-1532: make link nullable


Approved-by: Erik Tiekstra
This commit is contained in:
Matilda Landström
2025-08-20 13:32:00 +00:00
parent fe376c63f7
commit eaf6e851ec

View File

@@ -75,7 +75,7 @@ export const cardsGridSchema = z.object({
})
),
}),
link: buttonSchema.optional(),
link: buttonSchema.nullish(),
layout: z.nativeEnum(CardsGridLayoutEnum),
preamble: z.string().optional().default(""),
@@ -153,7 +153,7 @@ export const cardGridRefsSchema = z.object({
})
),
}),
link: linkConnectionRefsSchema.optional(),
link: linkConnectionRefsSchema.nullish(),
})
.transform((data) => {
return data.cardConnection.edges