orderiom-api-package 0.4.68 → 0.4.69

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.68",
3
+ "version": "0.4.69",
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",
@@ -305,21 +305,10 @@ const actions = {
305
305
  else commit('setCategories', categories);
306
306
 
307
307
  if(state.categories.length){
308
- if(!state.selectedCategory) {
309
- dispatch('chooseCategory', {
310
- category: state.categories[0],
311
- restaurantId
312
- })
313
- }else{
314
- // if selected category is set then check if it is the same category. If it is the same then there is no need to do anything.
315
- const catInList = categories.find(cat => cat.id === state.selectedCategory.id);
316
- if(!catInList || JSON.stringify(state.selectedCategory) !== JSON.stringify(catInList)){
317
- dispatch('chooseCategory', {
318
- category: state.categories[0],
319
- restaurantId
320
- })
321
- }
322
- }
308
+ dispatch('chooseCategory', {
309
+ category: state.categories[0],
310
+ restaurantId
311
+ })
323
312
  }
324
313
  }).catch(
325
314
  commonErrorCallback()