diff --git a/src/routes/location/[country]/[place].svelte b/src/routes/location/[country]/[place].svelte index 9227365..b7205f9 100644 --- a/src/routes/location/[country]/[place].svelte +++ b/src/routes/location/[country]/[place].svelte @@ -56,7 +56,7 @@ // Define dates $: latestPhoto = photos[0] - $: latestPhotoModified = latestPhoto.modified_on.replace(' ', 'T') + $: latestPhotoModified = latestPhoto ? latestPhoto.modified_on.replace(' ', 'T') : '' $: dateUpdatedFull = latestPhoto ? formatDate(latestPhotoModified, 'FULL') : '' $: dateUpdatedDatetime = latestPhoto ? formatDate(latestPhotoModified, 'DATETIME') : '' $: dateUpdatedRelative = latestPhoto ? relativeTime(latestPhotoModified, 2592000000) : '' @@ -150,9 +150,11 @@ + {#if location.illustration_desktop && location.illustration_mobile}
+ {/if}