@contrail/documents 1.5.5 → 1.5.6
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.
|
@@ -105,12 +105,10 @@ class DynamicTextUtil {
|
|
|
105
105
|
}
|
|
106
106
|
else {
|
|
107
107
|
if (entityType === 'assortmentItem') {
|
|
108
|
-
componentModels = Array.from(new Map(componentModels
|
|
109
|
-
.filter((model) => model.item && model.assortmentItem)
|
|
110
|
-
.map((model) => { var _a, _b; return [((_a = model.item) === null || _a === void 0 ? void 0 : _a.id) + '_' + ((_b = model.assortmentItem) === null || _b === void 0 ? void 0 : _b.id), model]; })).values());
|
|
108
|
+
componentModels = Array.from(new Map(componentModels.map((model) => { var _a, _b; return [((_a = model.item) === null || _a === void 0 ? void 0 : _a.id) + '_' + ((_b = model.assortmentItem) === null || _b === void 0 ? void 0 : _b.id), model]; })).values());
|
|
111
109
|
}
|
|
112
110
|
else {
|
|
113
|
-
componentModels = Array.from(new Map(componentModels.
|
|
111
|
+
componentModels = Array.from(new Map(componentModels.map((model) => { var _a; return [(_a = model[entityType]) === null || _a === void 0 ? void 0 : _a.id, model]; })).values());
|
|
114
112
|
}
|
|
115
113
|
}
|
|
116
114
|
componentModels.forEach((elementModel) => {
|