mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
UBERF-6949: fix kanban options (#5593)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
4e1169a21e
commit
7b999d7b47
@ -251,7 +251,7 @@ async function statusSort (
|
|||||||
for (const state of value) {
|
for (const state of value) {
|
||||||
if (res.has(state)) continue
|
if (res.has(state)) continue
|
||||||
const index = types.findIndex((p) => p.tasks.some((q) => taskTypes.get(q)?.statuses.includes(state)))
|
const index = types.findIndex((p) => p.tasks.some((q) => taskTypes.get(q)?.statuses.includes(state)))
|
||||||
if (index === -1) break
|
if (index === -1) continue
|
||||||
const type = types.splice(index, 1)[0]
|
const type = types.splice(index, 1)[0]
|
||||||
const statuses =
|
const statuses =
|
||||||
type.tasks.map((it) => taskTypes.get(it)).find((it) => it?.statuses.includes(state))?.statuses ?? []
|
type.tasks.map((it) => taskTypes.get(it)).find((it) => it?.statuses.includes(state))?.statuses ?? []
|
||||||
|
Loading…
Reference in New Issue
Block a user