Merge remote-tracking branch 'origin' into back-office-integration
This commit is contained in:
@@ -9,7 +9,7 @@ export function getMainImage(item: Item): string {
|
||||
if (item.imgs && item.imgs.length > 0) {
|
||||
return item.imgs[0];
|
||||
}
|
||||
return item.photos?.[0]?.url || '';
|
||||
return item.photos?.[0]?.url || '/assets/images/placeholder.svg';
|
||||
}
|
||||
|
||||
export function getAllImages(item: Item): string[] {
|
||||
|
||||
Reference in New Issue
Block a user