From 823b322e954b41a4233b90fe73f1536436b71ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Tue, 21 Apr 2020 15:40:09 +0200 Subject: [PATCH] Viewer: Fix page errors due to currentLocation Wait for the data to be displayed, otherwise having errors --- src/routes/viewer/[country]/[place]/[photo].svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/viewer/[country]/[place]/[photo].svelte b/src/routes/viewer/[country]/[place]/[photo].svelte index 90cec3c..9f48822 100644 --- a/src/routes/viewer/[country]/[place]/[photo].svelte +++ b/src/routes/viewer/[country]/[place]/[photo].svelte @@ -89,6 +89,7 @@ + {#if $currentLocation} {$site.seo_name} – Beautiful homes of {$currentLocation.name}, {$currentLocation.country.name} + {/if}