thm-p3-configurator 0.0.68 → 0.0.70
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.
|
@@ -29,9 +29,6 @@ orderClient.interceptors.request.use(config => {
|
|
|
29
29
|
config.headers.Authorization = "Bearer ".concat(authSession === null || authSession === void 0 ? void 0 : authSession.accessToken);
|
|
30
30
|
return config;
|
|
31
31
|
});
|
|
32
|
-
|
|
33
|
-
// Add response interceptor to handle 4xx errors
|
|
34
|
-
|
|
35
32
|
const orderApi = exports.orderApi = {
|
|
36
33
|
getOrder: orderParameters => orderClient("api".concat(APP_CONFIG.internal ? '' : '/public', "/order?").concat(orderParameters) // Remove the `/public` param if the configurator is internal,
|
|
37
34
|
),
|
|
@@ -297,9 +297,13 @@ const useSingleOrderArticles = exports.useSingleOrderArticles = function useSing
|
|
|
297
297
|
*/
|
|
298
298
|
const useSingleOrderCart = () => {
|
|
299
299
|
const [{
|
|
300
|
-
singleOrderCart
|
|
300
|
+
singleOrderCart,
|
|
301
|
+
singleOrderFormulaCode
|
|
301
302
|
}] = (0, _OrderSessionContext.useOrderSession)();
|
|
302
|
-
|
|
303
|
+
let formula = (0, _FormulaContext.useFormula)();
|
|
304
|
+
if (singleOrderFormulaCode) {
|
|
305
|
+
formula = singleOrderFormulaCode;
|
|
306
|
+
}
|
|
303
307
|
let cartOrderQuery = new URLSearchParams((0, _helpers__.removeNullishProps)({
|
|
304
308
|
formula,
|
|
305
309
|
isSingle: true,
|
|
@@ -62,7 +62,7 @@ const VehicleData = _ref => {
|
|
|
62
62
|
isDefaultExpanded: true,
|
|
63
63
|
body: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ' ', /*#__PURE__*/_react.default.createElement("div", {
|
|
64
64
|
className: (0, _helpers__.withStyle)('col-auto col-md-12 text-center')
|
|
65
|
-
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
65
|
+
}, !isFilter && /*#__PURE__*/_react.default.createElement("img", {
|
|
66
66
|
className: (0, _helpers__.withStyle)('vehicle-data__image img-fluid rounded-1 mx-0 mb-1'),
|
|
67
67
|
src: (0, _image.getImageFromHyper)({
|
|
68
68
|
imageId: vehicleLogo
|