Skip to content

Commit

Permalink
fix(PersonalGoal): now can create again
Browse files Browse the repository at this point in the history
  • Loading branch information
LamaEats committed Sep 27, 2024
1 parent fcc2dfe commit 516f7bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schema/goal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 516f7bd

Please sign in to comment.