Order tab fixup
This commit is contained in:
@@ -9,29 +9,36 @@ export const Order = (props) => {
|
|||||||
width: "50px",
|
width: "50px",
|
||||||
height: "50px",
|
height: "50px",
|
||||||
};
|
};
|
||||||
let displayedProducts = products.map(
|
let displayedProducts = []
|
||||||
product => {
|
if (products) {
|
||||||
|
displayedProducts = products.map(
|
||||||
|
product => {
|
||||||
|
|
||||||
if (product.type === "grouped"){
|
if (product.type === "grouped") {
|
||||||
bundledProductId = product.id
|
bundledProductId = product.id
|
||||||
}
|
|
||||||
|
|
||||||
let images = product.images.map(
|
|
||||||
image => {
|
|
||||||
return (
|
|
||||||
<img key={image.id.toString()} style={imageStyle} src={image.src} />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
)
|
|
||||||
return (
|
|
||||||
<div key={product.id.toString()}>
|
|
||||||
{images}
|
|
||||||
{product.name}
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
|
|
||||||
}
|
let images = product.images.map(
|
||||||
)
|
image => {
|
||||||
|
return (
|
||||||
|
<img key={image.id.toString()} style={imageStyle} src={image.src} />
|
||||||
|
)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
return (
|
||||||
|
<div key={product.id.toString()}>
|
||||||
|
{images}
|
||||||
|
{product.name}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!bundledProductId) {
|
||||||
|
bundledProductId = 1
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user