fix(report): remove dead null checks on non-nullable DaySheetRow.category

Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
2026-09-28 19:15:59 +08:00
parent 1101fb0a97
commit 9f2c14dc6b
@@ -124,10 +124,8 @@ AccomplishmentReportData buildAccomplishmentReportData({
if (row.kind == 'helper') { if (row.kind == 'helper') {
helpSeconds += row.seconds; helpSeconds += row.seconds;
} }
if (row.category != null) { secondsByCategory[row.category] =
secondsByCategory[row.category] = (secondsByCategory[row.category] ?? 0) + row.seconds;
(secondsByCategory[row.category] ?? 0) + row.seconds;
}
} }
// Track reviewers for included approved sheets only // Track reviewers for included approved sheets only
@@ -154,10 +152,8 @@ AccomplishmentReportData buildAccomplishmentReportData({
if (row.kind == 'helper') { if (row.kind == 'helper') {
helpSeconds += row.seconds; helpSeconds += row.seconds;
} }
if (row.category != null) { secondsByCategory[row.category] =
secondsByCategory[row.category] = (secondsByCategory[row.category] ?? 0) + row.seconds;
(secondsByCategory[row.category] ?? 0) + row.seconds;
}
} }
// Track reviewer for included sheets only // Track reviewer for included sheets only