Viewer: Fix page errors due to currentLocation
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Wait for the data to be displayed, otherwise having errors
This commit is contained in:
@@ -89,6 +89,7 @@
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
{#if $currentLocation}
|
||||
<title>{$site.seo_name} – Beautiful homes of {$currentLocation.name}, {$currentLocation.country.name}</title>
|
||||
<meta name="description" content="{$site.seo_name} {$currentLocation.name} {$currentLocation.description}">
|
||||
<SocialMetas
|
||||
@@ -97,6 +98,7 @@
|
||||
description="{$site.seo_name} {$currentLocation.name} {$currentLocation.description}"
|
||||
image={getThumbnail(currentPhoto.image.private_hash, 1200, 630)}
|
||||
/>
|
||||
{/if}
|
||||
</svelte:head>
|
||||
|
||||
<svelte:window bind:innerWidth={windowWidth} />
|
||||
|
||||
Reference in New Issue
Block a user