Fix table config (#7205)
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2024-11-20 22:09:49 +05:00 committed by GitHub
parent 872c148288
commit 62d10fa1db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,16 +52,6 @@
onMount(() => {
;(document.activeElement as HTMLElement)?.blur()
})
// Search config
const _config = config
function updateConfig (config: Array<BuildModelKey | string>, search?: string): void {
const useSearch = search !== '' && search != null
prefferedSorting = !useSearch ? prefferedSorting : '#score'
}
$: updateConfig(config, query.$search)
</script>
<svelte:window />
@ -76,7 +66,7 @@
<Table
bind:this={table}
{_class}
config={_config}
{config}
{options}
{query}
{totalQuery}