diff --git a/src/components/organisms/Locations.svelte b/src/components/organisms/Locations.svelte
index c9c5bbd..6e7eb60 100644
--- a/src/components/organisms/Locations.svelte
+++ b/src/components/organisms/Locations.svelte
@@ -6,10 +6,7 @@
export let locations: any
- const { continent } = getContext('global')
-
- // Filter continents with linked countries
- const filteredContinents = continent.filter((cont: any) => cont.countries.length)
+ const { continent, settings: { explore_list }} = getContext('global')
@@ -18,7 +15,7 @@
- {#each filteredContinents as { name, slug }}
+ {#each continent as { name, slug }}
-
diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte
index dc9347d..80e4c27 100644
--- a/src/routes/__layout.svelte
+++ b/src/routes/__layout.svelte
@@ -92,9 +92,15 @@
const { data } = res
+ // Filter continents with linked countries
+ const filteredContinents = data.continent.filter((cont: any) => cont.countries.length)
+
return {
props: {
- data,
+ data: {
+ ...data,
+ continent: filteredContinents,
+ },
count: {
photos: data.photo_aggregated[0].count.id,
locations: data.location_aggregated[0].count.id,