datasync-dynamic-form 1.1.9 → 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.
@@ -25,7 +25,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
25
25
 
26
26
  // reactstrap components
27
27
 
28
- const debugging = false;
28
+ const debugging = true;
29
29
  const local = true;
30
30
  const production = !local;
31
31
  const globals = {
@@ -625,7 +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
- return this._fieldRendering(field, ii);
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);
629
632
  }));
630
633
  } catch (err) {
631
634
  return /*#__PURE__*/_react.default.createElement(_reactstrap.Col, null, "Error ", err.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datasync-dynamic-form",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "Datasync Dynamic Form component",
5
5
  "main": "./dist/components/DsDynamicForm",
6
6
  "types": "./dist/components/DsDynamicForm",