@crystaldesign/product-handler 24.15.0-beta.21 → 24.15.0-beta.22

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.
@@ -863,10 +863,11 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
863
863
  this.trimStrings(baseData);
864
864
  //the base product is constructed, based on baseData and classification data
865
865
  baseProduct = _objectSpread(_objectSpread(_objectSpread({}, baseData), Object.entries(classificationData || {}).reduce(function (prev, _ref13) {
866
+ var _fieldConfiguration$c;
866
867
  var _ref14 = _slicedToArray__default["default"](_ref13, 2),
867
868
  key = _ref14[0],
868
869
  value = _ref14[1];
869
- prev["dc_".concat(key)] = _this3.mapClass(value, fieldConfiguration === null || fieldConfiguration === void 0 ? void 0 : fieldConfiguration.classMap[key].values);
870
+ prev["dc_".concat(key)] = _this3.mapClass(value, fieldConfiguration === null || fieldConfiguration === void 0 || (_fieldConfiguration$c = fieldConfiguration.classMap[key]) === null || _fieldConfiguration$c === void 0 ? void 0 : _fieldConfiguration$c.values);
870
871
  return prev;
871
872
  }, {})), {}, {
872
873
  _id: originProductId && !(variantData !== null && variantData !== void 0 && variantData.length) ? originProductId : baseData._id,
@@ -845,10 +845,11 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
845
845
  this.trimStrings(baseData);
846
846
  //the base product is constructed, based on baseData and classification data
847
847
  baseProduct = _objectSpread(_objectSpread(_objectSpread({}, baseData), Object.entries(classificationData || {}).reduce(function (prev, _ref13) {
848
+ var _fieldConfiguration$c;
848
849
  var _ref14 = _slicedToArray(_ref13, 2),
849
850
  key = _ref14[0],
850
851
  value = _ref14[1];
851
- prev["dc_".concat(key)] = _this3.mapClass(value, fieldConfiguration === null || fieldConfiguration === void 0 ? void 0 : fieldConfiguration.classMap[key].values);
852
+ prev["dc_".concat(key)] = _this3.mapClass(value, fieldConfiguration === null || fieldConfiguration === void 0 || (_fieldConfiguration$c = fieldConfiguration.classMap[key]) === null || _fieldConfiguration$c === void 0 ? void 0 : _fieldConfiguration$c.values);
852
853
  return prev;
853
854
  }, {})), {}, {
854
855
  _id: originProductId && !(variantData !== null && variantData !== void 0 && variantData.length) ? originProductId : baseData._id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/product-handler",
3
- "version": "24.15.0-beta.21",
3
+ "version": "24.15.0-beta.22",
4
4
  "peerDependencies": {
5
5
  "@crystaldesign/basket-model": "*",
6
6
  "@crystaldesign/diva-utils": "*"
@@ -12,5 +12,5 @@
12
12
  "dependencies": {
13
13
  "classnames": "^2.5.1"
14
14
  },
15
- "gitHead": "35f68e92ee56efc006300e1ff754898adef7962a"
15
+ "gitHead": "4b89be8b7d5cd32c87b0120f849156f85c23137f"
16
16
  }