mirror of
https://github.com/VisActor/VTable
synced 2024-11-22 01:52:03 +00:00
Merge pull request #2703 from VisActor/2702-bug-field-set-array-error
2702 bug field set array error
This commit is contained in:
commit
d5c1397ae0
@ -0,0 +1,11 @@
|
||||
{
|
||||
"changes": [
|
||||
{
|
||||
"comment": "fix: when field set array,record no corresponding field,occur error #2702\n\n",
|
||||
"type": "none",
|
||||
"packageName": "@visactor/vtable"
|
||||
}
|
||||
],
|
||||
"packageName": "@visactor/vtable",
|
||||
"email": "892739385@qq.com"
|
||||
}
|
@ -356,6 +356,9 @@ export function getValueByPath(obj: any, paths: string[]) {
|
||||
let prop;
|
||||
while ((prop = paths.shift())) {
|
||||
res = res[prop];
|
||||
if (!res) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user