From a07c79289b7f6c5d3f14101d15b985c931a42b44 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 28 Nov 2024 19:57:55 +0100 Subject: [PATCH] Fix: don't show tags in filter view if not logged in --- src/UI/BigComponents/Filterview.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/UI/BigComponents/Filterview.svelte b/src/UI/BigComponents/Filterview.svelte index a9214c984..3cf8431ab 100644 --- a/src/UI/BigComponents/Filterview.svelte +++ b/src/UI/BigComponents/Filterview.svelte @@ -28,9 +28,9 @@ (s) => (s === "yes" && state?.userRelatedState?.osmConnection?.userDetails?.data?.csCount >= - Constants.userJourney.tagsVisibleAt) || + Constants.userJourney.tagsVisibleAt) || s === "always" || - s === "full" + s === "full", ) /** @@ -79,9 +79,11 @@ {#if filter.options.length === 1 && filter.options[0].fields.length === 0} + {#if $showTags && filter.options[0].osmTags !== undefined} {filter.options[0].osmTags.asHumanString()} + {/if} {/if}