@arquimedes.co/eureka-forms 2.0.38 → 2.0.39

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.
@@ -154,7 +154,8 @@ export var useSetupApp = function (isEmbedded, _a) {
154
154
  for (var _b = 0, _c = section.steps; _b < _c.length; _b++) {
155
155
  var idStep = _c[_b];
156
156
  iterateNestedSteps(idStep, form.steps, function (step) {
157
- step.idSection = section.id;
157
+ if (step)
158
+ step.idSection = section.id;
158
159
  });
159
160
  }
160
161
  };
@@ -8,7 +8,7 @@ export type FillerSteps = FormSelector | ClassifierSelector | EntityValuePicker
8
8
  export declare function calcFillerSize(step: FillerSteps, steps: Record<string, FormStep>, values: Record<string, unknown>, size: FormSize): number;
9
9
  export declare const calcStepWidth: (stepSize: 1 | 2 | 3 | 4, size: FormSize) => number;
10
10
  export declare const calcDefaultValue: (step: FormStep | CBRFormStep) => any;
11
- export declare const iterateNestedSteps: (idStep: string, steps: Record<string, FormStep>, iteration: (step: FormStep) => void) => void;
11
+ export declare const iterateNestedSteps: (idStep: string, steps: Record<string, FormStep>, iteration: (step: FormStep | undefined) => void) => void;
12
12
  /**
13
13
  * Utility function to calc the substeps of a step
14
14
  * @param step step to calc the substeps
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.38",
4
+ "version": "2.0.39",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",