@crystaldesign/diva-seller 24.12.0-beta.35 → 24.12.0-beta.36

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.
@@ -8235,6 +8235,8 @@ function CheckOut(_ref) {
8235
8235
  onSave: function onSave() {
8236
8236
  return productHandler.saveProducts({
8237
8237
  products: [currentProduct]
8238
+ }).then(function (r) {
8239
+ return !!r.length;
8238
8240
  });
8239
8241
  },
8240
8242
  saved: true,
@@ -13707,7 +13709,7 @@ function useProductState (basket, divaNr) {
13707
13709
  return (_opt$title = opt.title) !== null && _opt$title !== void 0 ? _opt$title : opt.field;
13708
13710
  }).join(', ')));
13709
13711
  }
13710
- accountlogourl = catalogs[0].accountLogo;
13712
+ accountlogourl = catalogs === null || catalogs === void 0 ? void 0 : catalogs[0].accountLogo;
13711
13713
  if (accountlogourl) {
13712
13714
  logofile = new DivaFile({
13713
13715
  jwt: jwt,
@@ -13879,7 +13881,9 @@ function reducer(state, action) {
13879
13881
  if (newState.modified.variantData.some(function (mod) {
13880
13882
  return mod[field.field];
13881
13883
  })) {
13882
- newState.initialSelectedFields.push(field);
13884
+ if (!newState.initialSelectedFields.find(function (f) {
13885
+ return f.field == field.field;
13886
+ })) newState.initialSelectedFields.push(field);
13883
13887
  }
13884
13888
  });
13885
13889
  return newState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-seller",
3
- "version": "24.12.0-beta.35",
3
+ "version": "24.12.0-beta.36",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -29,9 +29,9 @@
29
29
  "react-dom": "^18.3.1"
30
30
  },
31
31
  "dependencies": {
32
- "@crystaldesign/analytics": "24.12.0-beta.35",
33
- "@crystaldesign/products-component": "24.12.0-beta.35",
34
- "@crystaldesign/real-time-viewer": "24.12.0-beta.35",
32
+ "@crystaldesign/analytics": "24.12.0-beta.36",
33
+ "@crystaldesign/products-component": "24.12.0-beta.36",
34
+ "@crystaldesign/real-time-viewer": "24.12.0-beta.36",
35
35
  "@material-ui/core": "^4.12.4",
36
36
  "@material-ui/icons": "^4.11.2",
37
37
  "react-error-boundary": "^4.0.13",
@@ -41,5 +41,5 @@
41
41
  },
42
42
  "types": "./build/types/seller/src/index.d.ts",
43
43
  "module": "build/esm/index.js",
44
- "gitHead": "d65e0dcc022918484ffbd0b861952b3177fdcea0"
44
+ "gitHead": "9ec2aeebddb19e4915a832c4252740c7f49c7d30"
45
45
  }