@arquimedes.co/eureka-forms 1.9.62-test → 1.9.64-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.
package/dist/App.js
CHANGED
|
@@ -337,12 +337,11 @@ var migrateForm = function (form, classifiers) {
|
|
|
337
337
|
var mappedClassifiers = {};
|
|
338
338
|
for (var _b = 0, _c = Object.keys(form.classifiers); _b < _c.length; _b++) {
|
|
339
339
|
var idClassifier = _c[_b];
|
|
340
|
-
var
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
classifer.children.find(function (child) { return typeof child !== 'string'; })) {
|
|
340
|
+
var classifier = __assign({}, form.classifiers[idClassifier]);
|
|
341
|
+
if (classifier.children &&
|
|
342
|
+
classifier.children.find(function (child) { return typeof child !== 'string'; })) {
|
|
344
343
|
var children = [];
|
|
345
|
-
for (var _d = 0, _e =
|
|
344
|
+
for (var _d = 0, _e = classifier.children; _d < _e.length; _d++) {
|
|
346
345
|
var child = _e[_d];
|
|
347
346
|
if (typeof child === 'string') {
|
|
348
347
|
children.push(child);
|
|
@@ -352,7 +351,9 @@ var migrateForm = function (form, classifiers) {
|
|
|
352
351
|
children.push(child._id);
|
|
353
352
|
}
|
|
354
353
|
}
|
|
354
|
+
classifier.children = children;
|
|
355
355
|
}
|
|
356
|
+
mappedClassifiers[idClassifier] = classifier;
|
|
356
357
|
}
|
|
357
358
|
newForm.classifiers = mappedClassifiers;
|
|
358
359
|
}
|
|
@@ -42,6 +42,7 @@ function ClassifierSelector(_a) {
|
|
|
42
42
|
if (!classifier) {
|
|
43
43
|
return _jsx("div", {});
|
|
44
44
|
}
|
|
45
|
+
console.log(classifier);
|
|
45
46
|
var options = classifier.children
|
|
46
47
|
.filter(function (idClassifier) { var _a; return ((_a = step.options[idClassifier]) === null || _a === void 0 ? void 0 : _a.type) !== ClassifierOptionTypes.HIDE; })
|
|
47
48
|
.map(function (idClassifier) {
|
package/package.json
CHANGED