From 98ce715ac64af838a048155b5911c0e896921115 Mon Sep 17 00:00:00 2001 From: Ichsan Kurniawan Date: Thu, 8 Oct 2026 20:06:56 +0700 Subject: [PATCH] Update ProjectAssignmentForm.tsx --- .../[client_id]/project-assignments/ProjectAssignmentForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/(dashboard)/task/client-detail/[client_id]/project-assignments/ProjectAssignmentForm.tsx b/app/(dashboard)/task/client-detail/[client_id]/project-assignments/ProjectAssignmentForm.tsx index 8748c27..9190d28 100644 --- a/app/(dashboard)/task/client-detail/[client_id]/project-assignments/ProjectAssignmentForm.tsx +++ b/app/(dashboard)/task/client-detail/[client_id]/project-assignments/ProjectAssignmentForm.tsx @@ -66,7 +66,7 @@ export const assignmentSchema = yup.object({ name: yup.string().required('Work order name is required'), code: yup.string().required('Work order code is required'), startDate: yup.date().required('Start date is required'), - endDate: yup.date().required().min(yup.ref('startDate'), 'End date cannot be before start date'), + endDate: yup.date().required('Start date is required').min(yup.ref('startDate'), 'End date cannot be before start date'), description: yup.string().optional().nullable().max(500, 'Description cannot exceed 500 characters').default(''), }), otherwise: (schema) => schema.nullable().notRequired()