From 62d10fa1db05a3e1ac3fb7f439375d97f2a90dec Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Wed, 20 Nov 2024 22:09:49 +0500 Subject: [PATCH] Fix table config (#7205) Signed-off-by: Denis Bykhov --- .../src/components/TableBrowser.svelte | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/plugins/view-resources/src/components/TableBrowser.svelte b/plugins/view-resources/src/components/TableBrowser.svelte index 92521ae6ab..a8454a0bcb 100644 --- a/plugins/view-resources/src/components/TableBrowser.svelte +++ b/plugins/view-resources/src/components/TableBrowser.svelte @@ -52,16 +52,6 @@ onMount(() => { ;(document.activeElement as HTMLElement)?.blur() }) - - // Search config - const _config = config - - function updateConfig (config: Array, search?: string): void { - const useSearch = search !== '' && search != null - prefferedSorting = !useSearch ? prefferedSorting : '#score' - } - - $: updateConfig(config, query.$search) @@ -76,7 +66,7 @@