datasync-dynamic-form 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -143,10 +143,11 @@ class DsDynamicForm extends _react.Component {
|
|
|
143
143
|
}); //No need to override form property with clearObject2 anymore because data are written outside form.
|
|
144
144
|
});
|
|
145
145
|
|
|
146
|
-
//Real
|
|
147
|
-
let duplicate_data_tier =
|
|
148
|
-
this.data_blob.data_tier = duplicate_data_tier;
|
|
149
|
-
console.log("
|
|
146
|
+
//Real efficient fix
|
|
147
|
+
let duplicate_data_tier = this.props.data_blob && this.props.data_blob.data_tier ? this.props.data_blob.data_tier : {};
|
|
148
|
+
this.data_blob.data_tier = Object.assign(duplicate_data_tier);
|
|
149
|
+
console.log("28:this.data_blob.data_tier ->", this.data_blob.data_tier);
|
|
150
|
+
console.log("28:this.props.data_blob.data_tier ->", this.props.data_blob.data_tier);
|
|
150
151
|
};
|
|
151
152
|
getFieldData = pFieldObject => {
|
|
152
153
|
/** Return data value form field object */
|