@luomus/laji-form 15.1.99 → 15.1.101

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.
@@ -129,6 +129,7 @@ let TaxonSetPopulatorField = class TaxonSetPopulatorField extends React.Componen
129
129
  const updatedFormData = Object.assign(Object.assign({}, formData), { units: updatedUnits });
130
130
  this.props.onChange(updatedFormData);
131
131
  });
132
+ return;
132
133
  }
133
134
  if (addedTaxonSets.length > 0) {
134
135
  const currentUnits = Array.isArray((_c = this.props.formData) === null || _c === void 0 ? void 0 : _c.units) ? this.props.formData.units : [];
@@ -154,7 +155,9 @@ let TaxonSetPopulatorField = class TaxonSetPopulatorField extends React.Componen
154
155
  });
155
156
  const updatedFormData = Object.assign(Object.assign({}, formData), { units: [...currentUnits, ...newUnits] });
156
157
  this.props.onChange(updatedFormData);
158
+ return;
157
159
  }
160
+ this.props.onChange(formData);
158
161
  });
159
162
  }
160
163
  static getName() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luomus/laji-form",
3
- "version": "15.1.99",
3
+ "version": "15.1.101",
4
4
  "description": "React module capable of building dynamic forms from Laji form json schemas",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "license": "MIT",
42
42
  "dependencies": {
43
43
  "@luomus/laji-map": "^5.1.19",
44
- "@luomus/laji-validate": "^0.0.128",
44
+ "@luomus/laji-validate": "^0.0.130",
45
45
  "@rjsf/core": "~5.1.0",
46
46
  "@rjsf/utils": "~5.1.0",
47
47
  "@rjsf/validator-ajv6": "~5.1.0",