orderiom-api-package
Advanced tools
Comparing version 0.4.66 to 0.4.67
{ | ||
"name": "orderiom-api-package", | ||
"version": "0.4.66", | ||
"version": "0.4.67", | ||
"description": "This package will install all necessary API calls for every orderiom restaurant", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -40,11 +40,15 @@ import {commonErrorCallback, calculateBasketIdParameter, updateBasket, formatDate, formatTime, deliveryCodeToName, weekdays, $http} from '../common'; | ||
subCategories(state){ | ||
if(!state.products) return [] | ||
if(state.showPinnedProducts) { | ||
return [{ | ||
id: null, | ||
imagePath:null, | ||
name:null, | ||
priority:null | ||
}] | ||
if(state.pinnedProducts?.length){ | ||
return [{ | ||
id: null, | ||
imagePath:null, | ||
name:null, | ||
priority:null | ||
}] | ||
}else{ | ||
return [] | ||
} | ||
} | ||
if(!state.products?.length) return [] | ||
const subCategories = []; | ||
@@ -51,0 +55,0 @@ const ids = Array.from(new Set(state.products.map(productInCategory=> |
127076
3191