@arquimedes.co/eureka-forms 3.0.36 → 3.0.38

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.
@@ -85,13 +85,13 @@ export var calcValuesStore = function (orgInfo, form, originalValues, postview,
85
85
  case 0:
86
86
  step = form.steps[idValue];
87
87
  if (!step) return [3 /*break*/, 2];
88
+ if (!values.sections[step.idSection])
89
+ values.sections[step.idSection] = {};
88
90
  return [4 /*yield*/, mapOriginalValue(orgInfo, step, originalValues[step.id], values, form)];
89
91
  case 1:
90
92
  value = _b.sent();
91
93
  if (value !== undefined) {
92
94
  if (!((_a = form.hiddenSteps) === null || _a === void 0 ? void 0 : _a.includes(step.id))) {
93
- if (!values.sections[step.idSection])
94
- values.sections[step.idSection] = {};
95
95
  values.sections[step.idSection][step.id] = value;
96
96
  }
97
97
  else {
@@ -145,7 +145,7 @@ function ApiSelectorComponent(_a) {
145
145
  response = _e.sent();
146
146
  return [2 /*return*/, response.filter(function (option) {
147
147
  var _a;
148
- return calcOptionId(option) &&
148
+ return calcOptionId(option) !== undefined &&
149
149
  ((_a = step.options[calcOptionId(option)]) === null || _a === void 0 ? void 0 : _a.type) !==
150
150
  ApiSelectorOptionTypes.HIDE;
151
151
  })];
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": "3.0.36",
4
+ "version": "3.0.38",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",