@crystaldesign/product-handler 24.15.0-beta.24 → 24.15.0-beta.26

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.
@@ -2164,7 +2164,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
2164
2164
  while (1) switch (_context18.prev = _context18.next) {
2165
2165
  case 0:
2166
2166
  fullUrl = serverUrl + '/v1/products/groups';
2167
- BATCH_SIZE = 40;
2167
+ BATCH_SIZE = 10;
2168
2168
  productsPackages = [];
2169
2169
  groupIndex = 0;
2170
2170
  i = 0;
@@ -2195,7 +2195,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
2195
2195
  _context18.next = 40;
2196
2196
  break;
2197
2197
  }
2198
- if (baseProduct) productsPackages[_i2].unshift(baseProduct);
2198
+ if (baseProduct && _i2 == 0) productsPackages[_i2].unshift(baseProduct);
2199
2199
  _context18.prev = 19;
2200
2200
  _context18.next = 22;
2201
2201
  return fetch(fullUrl, {
@@ -2146,7 +2146,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
2146
2146
  while (1) switch (_context18.prev = _context18.next) {
2147
2147
  case 0:
2148
2148
  fullUrl = serverUrl + '/v1/products/groups';
2149
- BATCH_SIZE = 40;
2149
+ BATCH_SIZE = 10;
2150
2150
  productsPackages = [];
2151
2151
  groupIndex = 0;
2152
2152
  i = 0;
@@ -2177,7 +2177,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
2177
2177
  _context18.next = 40;
2178
2178
  break;
2179
2179
  }
2180
- if (baseProduct) productsPackages[_i2].unshift(baseProduct);
2180
+ if (baseProduct && _i2 == 0) productsPackages[_i2].unshift(baseProduct);
2181
2181
  _context18.prev = 19;
2182
2182
  _context18.next = 22;
2183
2183
  return fetch(fullUrl, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/product-handler",
3
- "version": "24.15.0-beta.24",
3
+ "version": "24.15.0-beta.26",
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": "f0d107c6d5bbc29e153cc7568bc846509994cd62"
15
+ "gitHead": "594a819e8b264316d10ab6c5cbcea6bc93d171ca"
16
16
  }