Excluded cancelled tasks in dashboards
This commit is contained in:
@@ -870,6 +870,8 @@ List<Task> _applyTaskFilters(
|
||||
Map<String, int> _taskStatusCounts(List<Task> tasks) {
|
||||
final counts = <String, int>{};
|
||||
for (final task in tasks) {
|
||||
// Do not include cancelled tasks in dashboard summaries
|
||||
if (task.status == 'cancelled') continue;
|
||||
counts.update(task.status, (value) => value + 1, ifAbsent: () => 1);
|
||||
}
|
||||
return counts;
|
||||
|
||||
Reference in New Issue
Block a user