From 600007873c32f7482caf7dd0a04a412d420877e3 Mon Sep 17 00:00:00 2001 From: ji ruo <79234113+RuoJi6@users.noreply.github.com> Date: Tue, 13 Oct 2026 15:30:11 +0800 Subject: [PATCH] fix: preserve task severity counts after finding grouping --- web/src/app/(main)/function/tasks/page.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/app/(main)/function/tasks/page.tsx b/web/src/app/(main)/function/tasks/page.tsx index a7cd194..ae3ea19 100644 --- a/web/src/app/(main)/function/tasks/page.tsx +++ b/web/src/app/(main)/function/tasks/page.tsx @@ -1222,7 +1222,8 @@ const TaskRow = React.memo(function TaskRow({ {(() => { - const f = task.distinct_findings ?? task.findings; + // Keep report severity counts visible while a merged folder awaits its own assessment. + const f = task.findings ?? task.distinct_findings; const total = f ? f.critical + f.high + f.medium + f.low : 0; if (!f || (total === 0 && !task.distinct_findings?.total)) return 0; @@ -1230,7 +1231,7 @@ const TaskRow = React.memo(function TaskRow({ return ( {seg(f.critical, "text-rose-600 dark:text-rose-400")} /