remult 0.13.8 → 0.13.9
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/package.json
CHANGED
|
@@ -2279,6 +2279,7 @@ exports.ValueListFieldType = ValueListFieldType;
|
|
|
2279
2279
|
var ValueListInfo = /** @class */ (function () {
|
|
2280
2280
|
function ValueListInfo(valueListType) {
|
|
2281
2281
|
var e_30, _a, _b;
|
|
2282
|
+
var _this = this;
|
|
2282
2283
|
this.valueListType = valueListType;
|
|
2283
2284
|
this.byIdMap = new Map();
|
|
2284
2285
|
this.values = [];
|
|
@@ -2306,9 +2307,11 @@ var ValueListInfo = /** @class */ (function () {
|
|
|
2306
2307
|
var op = options_1_1.value;
|
|
2307
2308
|
if (op === null || op === void 0 ? void 0 : op.getValues) {
|
|
2308
2309
|
(_b = this.values).splice.apply(_b, tslib_1.__spread([0, this.values.length], op.getValues()));
|
|
2310
|
+
this.byIdMap.clear();
|
|
2309
2311
|
this.values.forEach(function (s) {
|
|
2310
2312
|
if (s.caption === undefined && s.id !== undefined)
|
|
2311
2313
|
s.caption = column_1.makeTitle(s.id);
|
|
2314
|
+
_this.byIdMap.set(s.id, s);
|
|
2312
2315
|
});
|
|
2313
2316
|
}
|
|
2314
2317
|
}
|