kui-utils 0.0.23 → 0.0.24
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/cjs/index.js +3 -5
- package/cjs/index.js.map +1 -1
- package/index.d.ts +1 -4
- package/index.js +3 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -2264,9 +2264,8 @@ var MultistepForm = /** @class */ (function () {
|
|
|
2264
2264
|
this.addValueToField = function (valueName, value, fieldName) {
|
|
2265
2265
|
if (!_this.fields)
|
|
2266
2266
|
_this.fields = {};
|
|
2267
|
-
var
|
|
2267
|
+
var path = _this.getNestedField(fieldName);
|
|
2268
2268
|
path[valueName] = value;
|
|
2269
|
-
_this.fields = fields;
|
|
2270
2269
|
};
|
|
2271
2270
|
this.getNestedField = function (fieldName) {
|
|
2272
2271
|
if (!_this.fields)
|
|
@@ -2278,12 +2277,11 @@ var MultistepForm = /** @class */ (function () {
|
|
|
2278
2277
|
// @ts-ignore
|
|
2279
2278
|
_this.fields[fieldParts[0]] = [];
|
|
2280
2279
|
}
|
|
2281
|
-
var
|
|
2282
|
-
var path = fields;
|
|
2280
|
+
var path = _this.fields;
|
|
2283
2281
|
fieldParts === null || fieldParts === void 0 ? void 0 : fieldParts.forEach(function (part) {
|
|
2284
2282
|
path = path[part];
|
|
2285
2283
|
});
|
|
2286
|
-
return
|
|
2284
|
+
return path;
|
|
2287
2285
|
};
|
|
2288
2286
|
this.nextStep = function () {
|
|
2289
2287
|
_this.step += 1;
|