thm-p3-configurator 0.0.149 → 0.0.151
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.
|
@@ -225,7 +225,6 @@ const ProductsOverview = () => {
|
|
|
225
225
|
|
|
226
226
|
// Filter out Extras category from products object
|
|
227
227
|
delete products[_constants__.PRODUCT_CATEGORIES.EXTRAS];
|
|
228
|
-
console.log(selectedBoardComputer, selectedCableset, selectedCombiset, selectedTowbar);
|
|
229
228
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isTmg && /*#__PURE__*/_react.default.createElement(_CheckboxInput.default, {
|
|
230
229
|
name: 'skipFilters',
|
|
231
230
|
initialValue: skipFilters,
|
|
@@ -251,7 +250,7 @@ const ProductsOverview = () => {
|
|
|
251
250
|
category: productCategory
|
|
252
251
|
});
|
|
253
252
|
|
|
254
|
-
// Check if another product within the same category has already been selected
|
|
253
|
+
// Check if another product within the same category has already been selected
|
|
255
254
|
const isAnotherProductSelected = productsPerCategory.some(otherProduct => [selectedCableset, selectedCombiset, selectedTowbar].includes(otherProduct.articleNumber) && otherProduct.articleNumber !== product.articleNumber);
|
|
256
255
|
if (productCategory === _constants__.PRODUCT_CATEGORIES.BOARD_COMPUTER && selectedCableset) {
|
|
257
256
|
return /*#__PURE__*/_react.default.createElement(_BoardComputerCard.default, {
|
|
@@ -297,8 +296,11 @@ const ProductsOverview = () => {
|
|
|
297
296
|
imageId: product === null || product === void 0 || (_product$images2 = product.images) === null || _product$images2 === void 0 ? void 0 : _product$images2[0]
|
|
298
297
|
}) : _logoPrimary.default,
|
|
299
298
|
isDisabled: false,
|
|
300
|
-
defaultSelected: productCategory === _constants__.PRODUCT_CATEGORIES.TOWBAR && selectedTowbar === product.articleNumber || productCategory === _constants__.PRODUCT_CATEGORIES.CABLESET && selectedCableset === product.articleNumber || productCategory === _constants__.PRODUCT_CATEGORIES.COMBISET && selectedCombiset === product.articleNumber
|
|
301
|
-
|
|
299
|
+
defaultSelected: productCategory === _constants__.PRODUCT_CATEGORIES.TOWBAR && selectedTowbar === product.articleNumber || productCategory === _constants__.PRODUCT_CATEGORIES.CABLESET && selectedCableset === product.articleNumber || productCategory === _constants__.PRODUCT_CATEGORIES.COMBISET && selectedCombiset === product.articleNumber
|
|
300
|
+
// Set both to false to prevent auto-selection when navigating back
|
|
301
|
+
,
|
|
302
|
+
|
|
303
|
+
isAnotherProductSelected: true,
|
|
302
304
|
isOnlyProductInCategory: false,
|
|
303
305
|
onSelect: _ref5 => {
|
|
304
306
|
let {
|