UBERF-9575: Fix filter disappear problem (#8159)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2025-03-06 22:34:02 +07:00 committed by GitHub
parent c5eb0ecd8b
commit f6c025f772
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -37,8 +37,6 @@
const hierarchy = client.getHierarchy() const hierarchy = client.getHierarchy()
const dispatch = createEventDispatcher() const dispatch = createEventDispatcher()
let maxIndex = 1
function onChange (e: Filter | undefined) { function onChange (e: Filter | undefined) {
if (e === undefined) return if (e === undefined) return
updateFilter(e) updateFilter(e)
@ -52,7 +50,7 @@
_class, _class,
target, target,
space, space,
index: ++maxIndex, index: $filterStore.map((it) => it.index).reduce((a, b) => Math.max(a, b), 0) + 1,
onChange onChange
}, },
target target

View File

@ -48,7 +48,7 @@
} }
} }
const targetClass = getTargetClass() const targetClass = getTargetClass()
$: isState = targetClass === core.class.Status ?? false $: isState = targetClass === core.class.Status
const dispatch = createEventDispatcher() const dispatch = createEventDispatcher()
async function getCountStates (ids: Array<Ref<Doc>>): Promise<number> { async function getCountStates (ids: Array<Ref<Doc>>): Promise<number> {