orderiom-api-package 0.3.5 → 0.3.6
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 +2 -2
package/package.json
CHANGED
package/src/modules/product.js
CHANGED
|
@@ -260,7 +260,7 @@ const actions = {
|
|
|
260
260
|
getBasket({ commit, rootState }, data) {
|
|
261
261
|
let basketId = undefined;
|
|
262
262
|
try{
|
|
263
|
-
basketId = calculateBasketIdParameter(!!rootState.orderiomApiPackage.auth.privateToken, data
|
|
263
|
+
basketId = calculateBasketIdParameter(!!rootState.orderiomApiPackage.auth.privateToken, data ? data.restaurantId : undefined);
|
|
264
264
|
} catch(e) {
|
|
265
265
|
console.error(e);
|
|
266
266
|
return false;
|
|
@@ -273,7 +273,7 @@ const actions = {
|
|
|
273
273
|
restaurantId: restaurantIdEnv
|
|
274
274
|
}
|
|
275
275
|
}).then(res =>
|
|
276
|
-
updateBasket({commit, basketId, res, isOutsideProduct: false, restaurantId: data
|
|
276
|
+
updateBasket({commit, basketId, res, isOutsideProduct: false, restaurantId: data ? data.restaurantId : undefined})
|
|
277
277
|
).catch(error => {
|
|
278
278
|
console.error(error);
|
|
279
279
|
return false;
|