mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +00:00
Fix filter removing values (#2940)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
fdae734430
commit
2574918a32
@ -109,10 +109,13 @@
|
||||
}
|
||||
const oldSize = filter.value.length
|
||||
filter.value = filter.value.filter((p) => !targets.has(p._id))
|
||||
onChange(filter)
|
||||
addNotification(await translate(view.string.FilterUpdated, {}), filter.key.label, FilterRemovedNotification, {
|
||||
description: await translate(view.string.FilterRemoved, { count: oldSize - (filter.value.length ?? 0) })
|
||||
})
|
||||
const removed = oldSize - (filter.value.length ?? 0)
|
||||
if (removed > 0) {
|
||||
onChange(filter)
|
||||
addNotification(await translate(view.string.FilterUpdated, {}), filter.key.label, FilterRemovedNotification, {
|
||||
description: await translate(view.string.FilterRemoved, { count: removed })
|
||||
})
|
||||
}
|
||||
}
|
||||
if (isStatus) {
|
||||
values = groupValues(values as Status[])
|
||||
|
Loading…
Reference in New Issue
Block a user