Skip to content

Commit

Permalink
Fix formItemLayout property issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
supnate committed Dec 27, 2019
1 parent 90a030f commit ab9e613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "antd-form-builder",
"version": "1.0.7",
"version": "1.0.8",
"description": "Form builder for ant.design.",
"author": "supnate",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/FormBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class FormBuilder extends Component {
)

let formItemLayout =
field.formItemLayout || (field.label ? _.has(meta, 'formItemLayout') || [8, 16] : null)
field.formItemLayout || (field.label ? _.get(meta, 'formItemLayout') || [8, 16] : null)
if (_.isArray(formItemLayout) && formItemLayout.length >= 2) {
formItemLayout = {
labelCol: { span: formItemLayout[0] },
Expand Down

0 comments on commit ab9e613

Please sign in to comment.