mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
Fix zero status filter values (#2970)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
93dd4489d7
commit
dd6619985c
@ -99,6 +99,9 @@
|
||||
const options = clazz.sortingKey !== undefined ? { sort: { [clazz.sortingKey]: SortingOrder.Ascending } } : {}
|
||||
objectsPromise = client.findAll(targetClass, resultQuery, options)
|
||||
values = await objectsPromise
|
||||
if (isStatus) {
|
||||
values = groupValues(values as Status[])
|
||||
}
|
||||
if (targets.has(undefined)) {
|
||||
values.unshift(undefined)
|
||||
}
|
||||
@ -116,9 +119,6 @@
|
||||
})
|
||||
}
|
||||
}
|
||||
if (isStatus) {
|
||||
values = groupValues(values as Status[])
|
||||
}
|
||||
objectsPromise = undefined
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user