@arquimedes.co/eureka-forms 2.0.39 → 2.0.40
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.
package/dist/App/AppHooks.js
CHANGED
|
@@ -154,8 +154,7 @@ 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
|
-
|
|
158
|
-
step.idSection = section.id;
|
|
157
|
+
step.idSection = section.id;
|
|
159
158
|
});
|
|
160
159
|
}
|
|
161
160
|
};
|
|
@@ -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
|
|
11
|
+
export declare const iterateNestedSteps: (idStep: string, steps: Record<string, FormStep>, iteration: (step: FormStep) => void) => void;
|
|
12
12
|
/**
|
|
13
13
|
* Utility function to calc the substeps of a step
|
|
14
14
|
* @param step step to calc the substeps
|
|
@@ -148,6 +148,10 @@ export var calcDefaultValue = function (step) {
|
|
|
148
148
|
};
|
|
149
149
|
export var iterateNestedSteps = function (idStep, steps, iteration) {
|
|
150
150
|
var step = steps[idStep];
|
|
151
|
+
if (!step) {
|
|
152
|
+
console.error('Missing Step:', idStep);
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
151
155
|
iteration(step);
|
|
152
156
|
if (step.type === StepTypes.MAPPER) {
|
|
153
157
|
for (var _i = 0, _a = step.rootSteps; _i < _a.length; _i++) {
|