orderiom-api-package 0.4.10 → 0.4.11
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 +3 -5
package/package.json
CHANGED
package/src/modules/product.js
CHANGED
|
@@ -390,7 +390,9 @@ const actions = {
|
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
const selectedCategory = rootState.orderiomApiPackage.product.selectedCategory
|
|
393
|
-
if (
|
|
393
|
+
if (rootState.orderiomApiPackage.product.showPinnedProducts) {
|
|
394
|
+
dispatch("getPinnedProducts", restaurantId);
|
|
395
|
+
} else if (selectedCategory) {
|
|
394
396
|
dispatch("getProducts", {
|
|
395
397
|
category: selectedCategory,
|
|
396
398
|
restaurantId: restaurantId,
|
|
@@ -403,10 +405,6 @@ const actions = {
|
|
|
403
405
|
dispatch('getCategories', (restaurantId || restaurantIdEnv));
|
|
404
406
|
}
|
|
405
407
|
|
|
406
|
-
if (rootState.orderiomApiPackage.product.showPinnedProducts) {
|
|
407
|
-
dispatch("getPinnedProducts", restaurantId);
|
|
408
|
-
}
|
|
409
|
-
|
|
410
408
|
const result = await dispatch("getBasket", (restaurantId || restaurantIdEnv));
|
|
411
409
|
|
|
412
410
|
return {
|