@viur/shop-components 0.0.1-dev.27 → 0.0.1-dev.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viur/shop-components",
3
- "version": "0.0.1-dev.27",
3
+ "version": "0.0.1-dev.29",
4
4
  "description": "Frontend Vue components for the shop module of ViUR",
5
5
  "repository": {
6
6
  "type": "git",
@@ -259,9 +259,9 @@ async function updateItem(e) {
259
259
  state.currentItem = e.item;
260
260
  state.currentNode = e.node;
261
261
  } else {
262
- cartStore.updateItem(e.articleKey, e.node.key, e.quantity);
262
+ await cartStore.updateItem(e.articleKey, e.node.key, e.quantity);
263
263
 
264
- await updateCart();
264
+ await cartStore.init();
265
265
  }
266
266
  }
267
267
 
@@ -290,6 +290,7 @@ async function updateCart() {
290
290
  state.nodes = [];
291
291
  state.leaves = {};
292
292
 
293
+ await cartStore.init();
293
294
  await getChildren();
294
295
  }
295
296