Skip to content

Commit

Permalink
FIO-7823: fixed an issue where the submission of dataGrid with nested…
Browse files Browse the repository at this point in the history
… form returns server error (#5479)
  • Loading branch information
TanyaGashtold authored Jan 30, 2024
1 parent 2aa913c commit 58dc96a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/form/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ export default class FormComponent extends Component {
}

isEmpty(value = this.dataValue) {
return value === null || _.isEqual(value, this.emptyValue) || (this.areAllComponentsEmpty(value.data) && !value._id);
return value === null || _.isEqual(value, this.emptyValue) || (this.areAllComponentsEmpty(value?.data) && !value?._id);
}

areAllComponentsEmpty(data) {
Expand Down

0 comments on commit 58dc96a

Please sign in to comment.