From 7b999d7b4775b60e18d8256e4a706b904dde7267 Mon Sep 17 00:00:00 2001 From: Vyacheslav Tumanov Date: Tue, 14 May 2024 13:21:08 +0500 Subject: [PATCH] UBERF-6949: fix kanban options (#5593) Signed-off-by: Vyacheslav Tumanov --- plugins/task-resources/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/task-resources/src/index.ts b/plugins/task-resources/src/index.ts index 183bf196f4..883b22ce95 100644 --- a/plugins/task-resources/src/index.ts +++ b/plugins/task-resources/src/index.ts @@ -251,7 +251,7 @@ async function statusSort ( for (const state of value) { if (res.has(state)) continue 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 statuses = type.tasks.map((it) => taskTypes.get(it)).find((it) => it?.statuses.includes(state))?.statuses ?? []