Skip to content

Commit

Permalink
Update rb-forms.js
Browse files Browse the repository at this point in the history
  • Loading branch information
getrebuild committed Jan 9, 2025
1 parent 447822b commit a83fb7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/web/assets/js/general/rb-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ class RbForm extends React.Component {

const fieldComp = _refs[key]
let v = fieldComp.getValue()
if (v && typeof v === 'object') v = v.id
if (v && typeof v === 'object') v = v.id || v // array
if (v) data[fieldComp.props.field] = v
}
return data
Expand Down

0 comments on commit a83fb7c

Please sign in to comment.