datasync-dynamic-form 1.0.16 → 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,9 +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 clear fix
147
- this.data_blob.data_tier = this.props.data_blob && this.props.data_blob.data_tier ? this.props.data_blob.data_tier : {};
148
- console.log("27:this.data_blob.data_tier ->", this.data_blob.data_tier);
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);
149
151
  };
150
152
  getFieldData = pFieldObject => {
151
153
  /** Return data value form field object */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datasync-dynamic-form",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "Datasync Dynamic Form component",
5
5
  "main": "./dist/components/DsDynamicForm",
6
6
  "types": "./dist/components/DsDynamicForm",