fix(report): remove dead null checks on non-nullable DaySheetRow.category
Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
@@ -124,11 +124,9 @@ AccomplishmentReportData buildAccomplishmentReportData({
|
||||
if (row.kind == 'helper') {
|
||||
helpSeconds += row.seconds;
|
||||
}
|
||||
if (row.category != null) {
|
||||
secondsByCategory[row.category] =
|
||||
(secondsByCategory[row.category] ?? 0) + row.seconds;
|
||||
}
|
||||
}
|
||||
|
||||
// Track reviewers for included approved sheets only
|
||||
if (sheet.status == DaySheetStatus.approved && sheet.reviewedBy != null) {
|
||||
@@ -154,11 +152,9 @@ AccomplishmentReportData buildAccomplishmentReportData({
|
||||
if (row.kind == 'helper') {
|
||||
helpSeconds += row.seconds;
|
||||
}
|
||||
if (row.category != null) {
|
||||
secondsByCategory[row.category] =
|
||||
(secondsByCategory[row.category] ?? 0) + row.seconds;
|
||||
}
|
||||
}
|
||||
|
||||
// Track reviewer for included sheets only
|
||||
if (sheet.reviewedBy != null) {
|
||||
|
||||
Reference in New Issue
Block a user