Order tab fixup

This commit is contained in:
Nedim Uka
2018-06-29 15:45:34 +02:00
parent b5475ff2f1
commit 10d2bdd117

View File

@@ -9,7 +9,9 @@ export const Order = (props) => {
width: "50px", width: "50px",
height: "50px", height: "50px",
}; };
let displayedProducts = products.map( let displayedProducts = []
if (products) {
displayedProducts = products.map(
product => { product => {
if (product.type === "grouped") { if (product.type === "grouped") {
@@ -32,6 +34,11 @@ export const Order = (props) => {
} }
) )
}
if (!bundledProductId) {
bundledProductId = 1
}
return ( return (
<div> <div>