diff --git a/src/UI/Search/SearchResults.svelte b/src/UI/Search/SearchResults.svelte index f184c348e..e725a083c 100644 --- a/src/UI/Search/SearchResults.svelte +++ b/src/UI/Search/SearchResults.svelte @@ -18,7 +18,7 @@ .filter( (f) => f.filter.options[0].fields.length === 0 && - Constants.priviliged_layers.indexOf(f.layer.id) < 0 + Constants.priviliged_layers.indexOf(f.layer.id) < 0, ) .map((af) => { const index = af.control.data @@ -28,15 +28,18 @@ option: af.filter.options[index], } return r - }) + }), ) - let allowOtherThemes = state.featureSwitches.featureSwitchBackToThemeOverview let searchTerm = state.searchState.searchTerm + + let allowOtherThemes = state.featureSwitches.featureSwitchBackToThemeOverview + let allowFilters = state.featureSwitches.featureSwitchFilter
- - + {#if $allowFilters} + + {/if} {#if $searchTerm.length === 0 && $activeFilters.length === 0}
@@ -45,8 +48,9 @@
{/if} - - + {#if $allowFilters} + + {/if} {#if $allowOtherThemes}