From c0d0e0c18fbdd77a9e4d379bf66f4af767b3645b Mon Sep 17 00:00:00 2001 From: gunshiz Date: Fri, 4 Sep 2026 21:03:23 +0700 Subject: [PATCH] fix : remove error showing when put data there --- components/admin/guide-section-editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/admin/guide-section-editor.tsx b/components/admin/guide-section-editor.tsx index b5bdeb1..8dc2f60 100644 --- a/components/admin/guide-section-editor.tsx +++ b/components/admin/guide-section-editor.tsx @@ -2232,7 +2232,7 @@ function TeamEditor({ const memberFieldInvalid = (teamIndex: number, memberIndex: number, field: string) => !validation.success && validation.error.issues.some((issue) => issue.path[0] === "teams" && issue.path[1] === teamIndex && issue.path[2] === "members" && - (issue.path[3] === memberIndex && issue.path[4] === field || issue.path.length === 3), + issue.path[3] === memberIndex && issue.path[4] === field, ); const localDraft = { teams }; useEffect(() => {