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:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user