@arquimedes.co/eureka-forms 1.9.66-test → 1.9.67-test

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.
@@ -36,14 +36,7 @@ function MaterialSection(_a) {
36
36
  : 'normal',
37
37
  } }, { children: (_b = section.steps) === null || _b === void 0 ? void 0 : _b.map(function (idStep) {
38
38
  var step = form.steps[idStep];
39
- //If partial is active only display steps with originalValues
40
- if (step) {
41
- return (_createElement(StepComponent, __assign({}, others, { globalEditable: others.editable, widthStats: widthStats, form: form, step: step, key: idStep, level: 0 })));
42
- }
43
- else {
44
- console.error('Step not found:', idStep);
45
- return _jsx("div", {}, idStep);
46
- }
39
+ return (_createElement(StepComponent, __assign({}, others, { globalEditable: others.editable, widthStats: widthStats, form: form, step: step, key: idStep, level: 0 })));
47
40
  }) })));
48
41
  }
49
42
  export default MaterialSection;
@@ -32,8 +32,6 @@ function MapperElementComponent(_a) {
32
32
  return (_jsx(PillElementContainer, __assign({ handleDelete: handleDelete }, others, { step: step, size: form.size }, { children: step.rootSteps.map(function (idSubStep) {
33
33
  var _a;
34
34
  var subStep = form.steps[element.ids[idSubStep]];
35
- if (!subStep)
36
- return _jsx("div", {});
37
35
  return (_createElement(StepComponent, __assign({}, others, { globalEditable: others.editable ? (_a = step.editable) !== null && _a !== void 0 ? _a : true : false, form: form, step: subStep, key: idSubStep, level: level + 1 })));
38
36
  }) })));
39
37
  }
@@ -161,7 +161,9 @@ function SmartSelect(_a) {
161
161
  return __generator(this, function (_a) {
162
162
  if (step.dependencies) {
163
163
  invalids = calcInvalidDeps(step, dependencyStore);
164
- setError(calcDepError === null || calcDepError === void 0 ? void 0 : calcDepError(invalids.map(function (idDep) { return form.steps[idDep]; })));
164
+ setError(calcDepError === null || calcDepError === void 0 ? void 0 : calcDepError(invalids
165
+ .map(function (idDep) { return form.steps[idDep]; })
166
+ .filter(function (idDep) { return idDep !== undefined; })));
165
167
  if (!value) {
166
168
  if (invalids.length > 0) {
167
169
  setFocus(invalids[0]);
@@ -40,6 +40,10 @@ import CollapsibleStep from './CollapsibleStep/CollapsibleStep';
40
40
  function StepComponent(_a) {
41
41
  var _b, _c;
42
42
  var step = _a.step, props = __rest(_a, ["step"]);
43
+ if (!step) {
44
+ console.error('Step not found!');
45
+ return _jsx("div", {});
46
+ }
43
47
  var customStep = props.customSteps[step.type];
44
48
  var editable = props.globalEditable ? (_b = step.editable) !== null && _b !== void 0 ? _b : true : false;
45
49
  if (customStep) {
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.66-test",
4
+ "version":"1.9.67-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",