diff --git a/packages/trpc/lib/routers/contentstack/schemas/blocks/cardsGrid.ts b/packages/trpc/lib/routers/contentstack/schemas/blocks/cardsGrid.ts index 959d82f8f..9279f531b 100644 --- a/packages/trpc/lib/routers/contentstack/schemas/blocks/cardsGrid.ts +++ b/packages/trpc/lib/routers/contentstack/schemas/blocks/cardsGrid.ts @@ -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