Query update fix (#728)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov
2021-12-24 10:03:50 +01:00
committed by GitHub
parent ceaadd65ff
commit a40b9331df
8 changed files with 61 additions and 53 deletions
@@ -26,12 +26,12 @@
export let config: string[]
export let search: string = ''
$: query = search === '' ? { space } : { $search: search, space }
$: resultQuery = search === '' ? { space, ...query } : { $search: search, space, ...query }
</script>
<div class="tableview-container">
<ScrollBox vertical stretch noShift>
<Table {_class} {config} {options} {query} {baseMenuClass} enableChecking />
<Table {_class} {config} {options} query={resultQuery} {baseMenuClass} enableChecking />
</ScrollBox>
</div>