thm-p3-configurator 0.0.149 → 0.0.150
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.
|
@@ -251,7 +251,7 @@ const ProductsOverview = () => {
|
|
|
251
251
|
category: productCategory
|
|
252
252
|
});
|
|
253
253
|
|
|
254
|
-
// Check if another product within the same category has already been selected
|
|
254
|
+
// Check if another product within the same category has already been selected
|
|
255
255
|
const isAnotherProductSelected = productsPerCategory.some(otherProduct => [selectedCableset, selectedCombiset, selectedTowbar].includes(otherProduct.articleNumber) && otherProduct.articleNumber !== product.articleNumber);
|
|
256
256
|
if (productCategory === _constants__.PRODUCT_CATEGORIES.BOARD_COMPUTER && selectedCableset) {
|
|
257
257
|
return /*#__PURE__*/_react.default.createElement(_BoardComputerCard.default, {
|
|
@@ -297,8 +297,11 @@ const ProductsOverview = () => {
|
|
|
297
297
|
imageId: product === null || product === void 0 || (_product$images2 = product.images) === null || _product$images2 === void 0 ? void 0 : _product$images2[0]
|
|
298
298
|
}) : _logoPrimary.default,
|
|
299
299
|
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
|
-
|
|
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
|
+
// Set both to false to prevent auto-selection when navigating back
|
|
302
|
+
,
|
|
303
|
+
|
|
304
|
+
isAnotherProductSelected: true,
|
|
302
305
|
isOnlyProductInCategory: false,
|
|
303
306
|
onSelect: _ref5 => {
|
|
304
307
|
let {
|