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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user