@arquimedes.co/eureka-forms 2.0.13-test → 2.0.14-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.
@@ -176,6 +176,14 @@ export var calcMapperSubSteps = function (step, elements, customSteps) {
176
176
  function calcStepDependency(idStep, steps, values, customSteps) {
177
177
  var _a, _b;
178
178
  var depStep = steps[idStep];
179
+ if (!depStep) {
180
+ console.error('Missing Step Dependency:', idStep);
181
+ return {
182
+ type: 'MISSING',
183
+ value: null,
184
+ dependents: [],
185
+ };
186
+ }
179
187
  var originalValue = (_a = values.sections[depStep.idSection]) === null || _a === void 0 ? void 0 : _a[depStep.id];
180
188
  return {
181
189
  type: (_b = depStep === null || depStep === void 0 ? void 0 : depStep.type) !== null && _b !== void 0 ? _b : 'ORIGINAL',
@@ -34,6 +34,6 @@ function CustomStepComponent(_a) {
34
34
  var dependencyStore = useAppSelector(function (state) { return state.site.dependencies; });
35
35
  var widthStats = useAppSelector(function (state) { return state.widthStats; });
36
36
  var dependencyInfo = useStepDependency(props.step);
37
- return customStep.component(__assign(__assign(__assign(__assign(__assign({}, props), { dependencyStore: dependencyStore, widthStats: widthStats, form: form, customStepProps: customStepProps }), dependencyInfo), global), ((_b = customStep.componentProps) !== null && _b !== void 0 ? _b : {})));
37
+ return customStep.component(__assign(__assign(__assign(__assign(__assign({}, global), dependencyInfo), props), { dependencyStore: dependencyStore, widthStats: widthStats, form: form, customStepProps: customStepProps }), ((_b = customStep.componentProps) !== null && _b !== void 0 ? _b : {})));
38
38
  }
39
39
  export default CustomStepComponent;
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":"2.0.13-test",
4
+ "version":"2.0.14-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",