fix: Fixed setNested when removed field from array of fields
This commit is contained in:
parent
96a991f46f
commit
8f4081357d
@ -52,6 +52,9 @@ export function setNested (obj: Record<string, any>, field: string, value: any):
|
||||
subProxy = subProxy[matches[2]]
|
||||
}
|
||||
} else {
|
||||
if (subProxy === undefined) {
|
||||
break
|
||||
}
|
||||
if (i === fieldParts.length - 1) {
|
||||
subProxy[fieldPart] = value
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user