Merge pull request #2703 from VisActor/2702-bug-field-set-array-error

2702 bug field set array error
This commit is contained in:
方帅 2024-10-31 15:11:31 +08:00 committed by GitHub
commit d5c1397ae0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "fix: when field set arrayrecord no corresponding fieldoccur error #2702\n\n",
"type": "none",
"packageName": "@visactor/vtable"
}
],
"packageName": "@visactor/vtable",
"email": "892739385@qq.com"
}

View File

@ -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;
}