UBERF-6949: fix kanban options (#5593)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2024-05-14 13:21:08 +05:00 committed by GitHub
parent 4e1169a21e
commit 7b999d7b47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ?? []