Disappear filter fix (#1957)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov 2022-05-31 10:23:37 +06:00 committed by GitHub
parent 7479ec6ca7
commit a12d5a3347
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,11 @@
# Changelog
## 0.6.23
Platform:
- Fix first filter disappear
## 0.6.22
Platform:

View File

@ -56,9 +56,7 @@
}}
/>
{#if filters !== []}
<FilterBar {_class} {query} bind:filters on:change={(e) => (resultQuery = e.detail)} />
{/if}
<FilterBar {_class} {query} bind:filters on:change={(e) => (resultQuery = e.detail)} />
<Scroller tableFade>
<Table
bind:this={table}

View File

@ -30,7 +30,7 @@
const hierarchy = client.getHierarchy()
const dispatch = createEventDispatcher()
let maxIndex = filters ? filters.length : 0
let maxIndex = 1
// const allFilters: boolean = true
function onChange (e: Filter | undefined) {