datasync-dynamic-form 1.1.17 → 1.1.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.
|
@@ -107,12 +107,14 @@ class DsDynamicForm extends _react.Component {
|
|
|
107
107
|
};
|
|
108
108
|
setFieldData = (fieldName, value) => {
|
|
109
109
|
try {
|
|
110
|
-
if (globals.parameters.debugging) console.log("fieldName ->", fieldName, " value ->", value);
|
|
110
|
+
if (globals.parameters.debugging) console.log("setFieldData:fieldName ->", fieldName, " value ->", value);
|
|
111
111
|
let duplicate_data_tier = JSON.parse(JSON.stringify(this.local_data_blob.data_tier));
|
|
112
112
|
duplicate_data_tier[fieldName] = value;
|
|
113
|
-
local_data_blob.data_tier = duplicate_data_tier;
|
|
113
|
+
this.local_data_blob.data_tier = duplicate_data_tier;
|
|
114
114
|
//this.local_data_blob.data_tier[fieldName] = value
|
|
115
|
-
} catch (error) {
|
|
115
|
+
} catch (error) {
|
|
116
|
+
alert(error);
|
|
117
|
+
}
|
|
116
118
|
|
|
117
119
|
//onFormChange handler return current form value to caller - PMAB on 2025-02-03
|
|
118
120
|
if (this.props.onFormChange) this.props.onFormChange(this.local_data_blob.data_tier);
|