Viewer: Fix page errors due to currentLocation
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:
2020-04-21 15:40:09 +02:00
parent 1718ed01b6
commit 823b322e95

View File

@@ -89,6 +89,7 @@
</script> </script>
<svelte:head> <svelte:head>
{#if $currentLocation}
<title>{$site.seo_name} Beautiful homes of {$currentLocation.name}, {$currentLocation.country.name}</title> <title>{$site.seo_name} Beautiful homes of {$currentLocation.name}, {$currentLocation.country.name}</title>
<meta name="description" content="{$site.seo_name} {$currentLocation.name} {$currentLocation.description}"> <meta name="description" content="{$site.seo_name} {$currentLocation.name} {$currentLocation.description}">
<SocialMetas <SocialMetas
@@ -97,6 +98,7 @@
description="{$site.seo_name} {$currentLocation.name} {$currentLocation.description}" description="{$site.seo_name} {$currentLocation.name} {$currentLocation.description}"
image={getThumbnail(currentPhoto.image.private_hash, 1200, 630)} image={getThumbnail(currentPhoto.image.private_hash, 1200, 630)}
/> />
{/if}
</svelte:head> </svelte:head>
<svelte:window bind:innerWidth={windowWidth} /> <svelte:window bind:innerWidth={windowWidth} />