orderiom-api-package 0.4.25 → 0.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orderiom-api-package",
3
- "version": "0.4.25",
3
+ "version": "0.4.26",
4
4
  "description": "This package will install all necessary API calls for every orderiom restaurant",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -276,12 +276,12 @@ const actions = {
276
276
  }
277
277
 
278
278
  dispatch("getProducts", {
279
- category: categories[0],
280
- restaurantId: restaurantId,
279
+ category: state.selectedCategory,
280
+ restaurantId,
281
281
  });
282
282
  dispatch("getAttributeItems", {
283
- category: categories[0],
284
- restaurantId: restaurantId
283
+ category: state.selectedCategory,
284
+ restaurantId
285
285
  });
286
286
  } else {
287
287
  commit('setCategories', categories);
@@ -297,12 +297,12 @@ const actions = {
297
297
  }
298
298
 
299
299
  dispatch("getProducts", {
300
- category: categories[0],
301
- restaurantId: restaurantId,
300
+ category: state.selectedCategory,
301
+ restaurantId,
302
302
  });
303
303
  dispatch("getAttributeItems", {
304
- category: categories[0],
305
- restaurantId: restaurantId
304
+ category: state.selectedCategory,
305
+ restaurantId
306
306
  });
307
307
  }
308
308
  });