From f5d53a76c91f767196d0efcc5b801487a77a7ab9 Mon Sep 17 00:00:00 2001 From: Maksim Sviridov Date: Thu, 20 Jul 2023 12:39:50 +0300 Subject: [PATCH] fix(GoalDependencies): drop `cuid` validatation check --- src/schema/goal.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/schema/goal.ts b/src/schema/goal.ts index db83d6802..e0412dba5 100644 --- a/src/schema/goal.ts +++ b/src/schema/goal.ts @@ -18,8 +18,8 @@ export const toggleGoalDependencySchema = z.object({ id: z.string().optional(), kind: z.nativeEnum(dependencyKind), relation: z.object({ - id: z.string().cuid({ - message: tr('Choose a dependency'), + id: z.string({ + required_error: tr('Choose a dependency'), }), }), });