orderiom-api-package 0.3.7 → 0.3.8
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 -0
package/package.json
CHANGED
package/src/modules/product.js
CHANGED
|
@@ -258,6 +258,8 @@ const actions = {
|
|
|
258
258
|
);
|
|
259
259
|
},
|
|
260
260
|
getBasket({ commit, rootState }, data) {
|
|
261
|
+
if(typeof data === 'string' || typeof data === 'number') data = {restaurantId: data};
|
|
262
|
+
|
|
261
263
|
let basketId = undefined;
|
|
262
264
|
try{
|
|
263
265
|
basketId = calculateBasketIdParameter(!!rootState.orderiomApiPackage.auth.privateToken, data ? data.restaurantId : undefined);
|