thm-p3-configurator 0.0.95 → 0.0.96
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.
|
@@ -380,7 +380,7 @@ const useProductsQuery = orderParameters => {
|
|
|
380
380
|
// NOTE: the API to enrich the products with extra data is only available when the configurator has an authenticated user, so on in the PP.
|
|
381
381
|
// If we need this also for the public version than Hyper needs to implement this.
|
|
382
382
|
|
|
383
|
-
|
|
383
|
+
try {
|
|
384
384
|
var _data$articles7, _data$articles8, _data$articles9, _data$articles10, _data$articles11;
|
|
385
385
|
// Enrich all products with brands and prices
|
|
386
386
|
const enrichedProducts = await (0, _singleOrderArticles.enrichArticlesWithBrandsAndPrices)(allProducts, branchId, formula);
|
|
@@ -398,7 +398,7 @@ const useProductsQuery = orderParameters => {
|
|
|
398
398
|
extras: ((_data$articles11 = data.articles) === null || _data$articles11 === void 0 || (_data$articles11 = _data$articles11.extras) === null || _data$articles11 === void 0 ? void 0 : _data$articles11.map(product => _objectSpread(_objectSpread({}, product), enrichedProductsMap[product.articleNumber]))) || []
|
|
399
399
|
})
|
|
400
400
|
});
|
|
401
|
-
}
|
|
401
|
+
} catch (_unused) {
|
|
402
402
|
return data;
|
|
403
403
|
}
|
|
404
404
|
}
|