diff --git a/src/schema/goal.ts b/src/schema/goal.ts index d7a4fbd00..93eec8bf4 100644 --- a/src/schema/goal.ts +++ b/src/schema/goal.ts @@ -45,7 +45,7 @@ export const goalCommonSchema = z .discriminatedUnion('mode', [ z.object({ mode: z.literal('personal'), - parent: z.object({}).optional(), + parent: z.object({}).nullish(), }), z.object({ mode: z.literal('default'),