mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-13 19:00:09 +00:00
UBERF-9575: Fix filter disappear problem (#8159)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
c5eb0ecd8b
commit
f6c025f772
@ -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
|
||||||
|
@ -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> {
|
||||||
|
Loading…
Reference in New Issue
Block a user