From 58dc96a02314f00c6af6211c7e5d10aee869628b Mon Sep 17 00:00:00 2001 From: TanyaGashtold <61136841+TanyaGashtold@users.noreply.github.com> Date: Tue, 30 Jan 2024 23:12:04 +0300 Subject: [PATCH] FIO-7823: fixed an issue where the submission of dataGrid with nested form returns server error (#5479) --- src/components/form/Form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/form/Form.js b/src/components/form/Form.js index 15b4a15210..957c802be3 100644 --- a/src/components/form/Form.js +++ b/src/components/form/Form.js @@ -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) {