@inseefr/lunatic 0.4.30-v2 → 0.4.31-v2
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.
|
@@ -25,9 +25,12 @@ function validateComponentsForModal(state, components) {
|
|
|
25
25
|
|
|
26
26
|
if (Array.isArray(controls)) {
|
|
27
27
|
var componentErrors = (0, _validationUtils.resolveComponentControls)(state, controls);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
|
|
29
|
+
if (componentErrors.length) {
|
|
30
|
+
var shallowIteration = pager.shallowIteration;
|
|
31
|
+
var idC = shallowIteration !== undefined ? "".concat(id, "-").concat(shallowIteration) : id;
|
|
32
|
+
return _objectSpread(_objectSpread({}, errors), {}, _defineProperty({}, idC, componentErrors));
|
|
33
|
+
}
|
|
31
34
|
} //Thanks to init which split basic Loops, we only go into unPaginatedLoops
|
|
32
35
|
|
|
33
36
|
|