From cc33f16d6ff153b138eb0427f86777405132c55d Mon Sep 17 00:00:00 2001 From: Mawoka Date: Thu, 23 Jun 2022 21:52:16 +0200 Subject: [PATCH] :bug: Fixed search --- frontend/src/routes/search.svelte | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/src/routes/search.svelte b/frontend/src/routes/search.svelte index 6970320..fa0f6b4 100644 --- a/frontend/src/routes/search.svelte +++ b/frontend/src/routes/search.svelte @@ -13,8 +13,7 @@ import { getLocalization } from '$lib/i18n'; const { t } = getLocalization(); import SearchCard from '$lib/search-card.svelte'; - import { createQueryParamsStore } from '$lib/stores'; - const search_term = createQueryParamsStore('q'); + let search_term = ''; let resp_data = null; const submit = async () => { @@ -24,7 +23,7 @@ 'Content-Type': 'application/json' }, body: JSON.stringify({ - q: $search_term, + q: search_term, attributesToHighlight: ['*'] }) }); @@ -57,12 +56,12 @@ placeholder={$t('search_page.at_least_3_characters')} aria-label="Search" aria-describedby="button-addon2" - bind:value={$search_term} + bind:value={search_term} />