Fix Poster layout

This commit is contained in:
2021-11-05 12:42:49 +01:00
parent 1785fb1c03
commit 77b072359c
2 changed files with 9 additions and 4 deletions

View File

@@ -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: {