Fix Poster layout
This commit is contained in:
@@ -12,9 +12,11 @@
|
||||
* Preview photos specs
|
||||
*/
|
||||
let lastPreviewPhoto: any = undefined
|
||||
$: if (product.photos_preview.length) {
|
||||
|
||||
$: if (product && product.photos_preview.length) {
|
||||
lastPreviewPhoto = product.photos_preview[product.photos_preview.length - 1].directus_files_id
|
||||
}
|
||||
|
||||
const photosPreview = [
|
||||
{
|
||||
sizes: {
|
||||
|
||||
Reference in New Issue
Block a user