Skip to content

Commit

Permalink
fix: 获取上级数据没有则返回 undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyair committed Aug 20, 2020
1 parent a02d5ef commit cb95d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/yforms/src/YForm/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export const getParentNameData = (values: any, name: YFormItemProps['name']) =>
if (_name.length === 1) {
return _values;
}
return get(_values, _name.slice(0, _name.length - 1), {});
return get(_values, _name.slice(0, _name.length - 1));
};

export function submitFormatValues(
Expand Down

0 comments on commit cb95d15

Please sign in to comment.