@luomus/laji-form 15.1.113 → 15.1.114

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.
@@ -100,7 +100,8 @@ let TaxonSetPopulatorField = class TaxonSetPopulatorField extends React.Componen
100
100
  return this.unitTaxonSets[unit.identifications[0].taxonID]
101
101
  && this.unitTaxonSets[unit.identifications[0].taxonID].includes(deletedTaxonSetId);
102
102
  });
103
- observationsExist = deletedTaxonSetUnits.some((unit) => unit.observationStatus !== "MY.observationStatusIgnored");
103
+ observationsExist = deletedTaxonSetUnits.some((unit) => unit.observationStatus !== "MY.observationStatusIgnored" &&
104
+ unit.observationStatus !== "MY.observationStatusNotObserved");
104
105
  if (observationsExist) {
105
106
  window.alert(translations === null || translations === void 0 ? void 0 : translations.TaxonSetDeletionFailed);
106
107
  const restoredFormData = Object.assign(Object.assign({}, formData), { taxonCensus: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luomus/laji-form",
3
- "version": "15.1.113",
3
+ "version": "15.1.114",
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",