mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-29 19:55:20 +00:00
Fix categories sorting (#2459)
Signed-off-by: Denis Maslennikov <denis.maslennikov@gmail.com>
This commit is contained in:
parent
ffe9a70804
commit
dc6d85060c
@ -316,9 +316,9 @@ export function getCategories (
|
|||||||
if (key === undefined) {
|
if (key === undefined) {
|
||||||
return [undefined] // No grouping
|
return [undefined] // No grouping
|
||||||
}
|
}
|
||||||
const defaultStatuses = listIssueStatusOrder.map(
|
const defaultStatuses = listIssueStatusOrder
|
||||||
(category) => statuses.find((status) => status.category === category)?._id
|
.map((category) => statuses.filter((status) => status.category === category).map((item) => item._id))
|
||||||
)
|
.flat()
|
||||||
|
|
||||||
const existingCategories = Array.from(new Set(elements.map((x: any) => x[key] ?? undefined)))
|
const existingCategories = Array.from(new Set(elements.map((x: any) => x[key] ?? undefined)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user