fix : remove error showing when put data there
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user