fix: improve error path merging from server, make sure no new or removed rows/values coming from the server are being considered outside addFieldRow

This commit is contained in:
Alessio Gravili
2024-03-27 15:55:19 -04:00
parent 08ff286f9a
commit db8e805a96
13 changed files with 115 additions and 59 deletions

View File

@@ -70,7 +70,7 @@ export const ArrayRow: React.FC<ArrayRowProps> = ({
'0',
)}`
const errorCount = row.errorPaths?.size
const errorCount = row.errorPaths?.length
const fieldHasErrors = errorCount > 0 && hasSubmitted
const classNames = [