zakeke-configurator-react 0.0.76 → 0.0.77
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.
- package/dist/index.js +13 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -38476,15 +38476,21 @@ class ZakekeEnvironment {
|
|
|
38476
38476
|
// Search the attribute
|
|
38477
38477
|
this.zkProduct.get("attributes").each(attribute => {
|
|
38478
38478
|
if (Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["isPlatformCode"])(attribute.get("attributeCode"))) {
|
|
38479
|
-
|
|
38480
|
-
|
|
38481
|
-
|
|
38482
|
-
|
|
38483
|
-
|
|
38484
|
-
|
|
38485
|
-
|
|
38479
|
+
try {
|
|
38480
|
+
if (Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["compare"])(JSON.parse(attribute.get("attributeCode")), JSON.parse(platformSelection.attributeCode))) {
|
|
38481
|
+
let option = attribute.get("options").find(option => {
|
|
38482
|
+
return Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["compare"])(JSON.parse(option.get("optionCode")), JSON.parse(platformSelection.optionCode));
|
|
38483
|
+
});
|
|
38484
|
+
if (option) {
|
|
38485
|
+
this.selection.selectAttributeValue(attribute.get('attributeID'), option.get('optionID'));
|
|
38486
|
+
platformSelection.attributeLabel = attribute.get("name");
|
|
38487
|
+
}
|
|
38486
38488
|
}
|
|
38487
38489
|
}
|
|
38490
|
+
catch (ex) {
|
|
38491
|
+
console.error("Failed parsing attribute from data:", platformSelection);
|
|
38492
|
+
console.error(ex);
|
|
38493
|
+
}
|
|
38488
38494
|
}
|
|
38489
38495
|
});
|
|
38490
38496
|
}
|