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.
Files changed (2) hide show
  1. package/dist/index.js +13 -7
  2. 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
- if (Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["compare"])(JSON.parse(attribute.get("attributeCode")), JSON.parse(platformSelection.attributeCode))) {
38480
- let option = attribute.get("options").find(option => {
38481
- return Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["compare"])(JSON.parse(option.get("optionCode")), JSON.parse(platformSelection.optionCode));
38482
- });
38483
- if (option) {
38484
- this.selection.selectAttributeValue(attribute.get('attributeID'), option.get('optionID'));
38485
- platformSelection.attributeLabel = attribute.get("name");
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zakeke-configurator-react",
3
- "version": "0.0.76",
3
+ "version": "0.0.77",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/declarations/composer/Module/src/index.d.ts",