mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-30 12:15:51 +00:00
UBERF-9575: Fix filter disappear problem (#8159)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
427ef5905b
commit
8eeef589f8
@ -37,8 +37,6 @@
|
||||
const hierarchy = client.getHierarchy()
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
let maxIndex = 1
|
||||
|
||||
function onChange (e: Filter | undefined) {
|
||||
if (e === undefined) return
|
||||
updateFilter(e)
|
||||
@ -52,7 +50,7 @@
|
||||
_class,
|
||||
target,
|
||||
space,
|
||||
index: ++maxIndex,
|
||||
index: $filterStore.map((it) => it.index).reduce((a, b) => Math.max(a, b), 0) + 1,
|
||||
onChange
|
||||
},
|
||||
target
|
||||
|
Loading…
Reference in New Issue
Block a user