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 +1 -1
- package/src/modules/product.js +4 -15
package/package.json
CHANGED
package/src/modules/product.js
CHANGED
|
@@ -305,21 +305,10 @@ const actions = {
|
|
|
305
305
|
else commit('setCategories', categories);
|
|
306
306
|
|
|
307
307
|
if(state.categories.length){
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
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()
|