#40 feat: add catalogue images CRUD and display in product catalog
This commit is contained in:
@@ -379,7 +379,7 @@ export default {
|
||||
this.items = data.map((product) => ({
|
||||
...product,
|
||||
quantity: 0,
|
||||
img: product.img || not_image_product,
|
||||
img: (product.catalogue_images?.length > 0) ? product.catalogue_images[0] : (product.img || not_image_product),
|
||||
}));
|
||||
})
|
||||
.catch((error) => {
|
||||
|
||||
Reference in New Issue
Block a user