From 7635358bbe5cf4aef7a9117daeedea26b891759d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Sat, 2 Oct 2021 20:37:02 +0200 Subject: [PATCH] Filter continents with linked countries in server request --- src/components/organisms/Locations.svelte | 7 ++----- src/routes/__layout.svelte | 8 +++++++- 2 files changed, 9 insertions(+), 6 deletions(-) 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 @@