datasync-dynamic-form 1.1.10 → 1.1.11
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.
|
@@ -625,8 +625,10 @@ class DsDynamicForm extends _react.Component {
|
|
|
625
625
|
_colRendering = col => {
|
|
626
626
|
try {
|
|
627
627
|
return /*#__PURE__*/_react.default.createElement(_reactstrap.Col, null, col.Fields.map((field, ii) => {
|
|
628
|
-
field
|
|
629
|
-
|
|
628
|
+
//let us create a field copy before adding new err property to avoid object is not extensible error
|
|
629
|
+
let field_object_with_err = JSON.parse(JSON.stringify(field));
|
|
630
|
+
field_object_with_err.err = "";
|
|
631
|
+
return this._fieldRendering(field_object_with_err, ii);
|
|
630
632
|
}));
|
|
631
633
|
} catch (err) {
|
|
632
634
|
return /*#__PURE__*/_react.default.createElement(_reactstrap.Col, null, "Error ", err.message);
|