@arquimedes.co/eureka-forms 1.9.44 → 1.9.46

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.
Files changed (2) hide show
  1. package/dist/App.js +3 -3
  2. package/package.json +1 -1
package/dist/App.js CHANGED
@@ -403,13 +403,13 @@ var mapOriginalValues = function (originalValues, form) {
403
403
  return newValues;
404
404
  };
405
405
  var mapOriginalValue = function (step, value, form) {
406
- var _a;
406
+ var _a, _b;
407
407
  switch (step === null || step === void 0 ? void 0 : step.type) {
408
408
  case StepTypes.TEXTAREA: {
409
409
  if (step.hasTextEditor) {
410
410
  return calcDefaultDraftValue(value);
411
411
  }
412
- return value.value;
412
+ return (_a = value.value) !== null && _a !== void 0 ? _a : value;
413
413
  }
414
414
  case StepTypes.SELECTOR: {
415
415
  var option = step.options.find(function (option) { return option.value == value; });
@@ -418,7 +418,7 @@ var mapOriginalValue = function (step, value, form) {
418
418
  return value;
419
419
  }
420
420
  case StepTypes.CLASSIFIER_SELECTOR: {
421
- var classifier = form.classifiers[(_a = step.idClassifier) !== null && _a !== void 0 ? _a : ''];
421
+ var classifier = form.classifiers[(_b = step.idClassifier) !== null && _b !== void 0 ? _b : ''];
422
422
  if (classifier) {
423
423
  var option = classifier.children.find(function (child) { return child._id == value; });
424
424
  if (!(value === null || value === void 0 ? void 0 : value.value))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arquimedes.co/eureka-forms",
3
3
  "repository": "git://github.com/Arquimede5/Eureka-Forms.git",
4
- "version": "1.9.44",
4
+ "version": "1.9.46",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",