diff --git a/mac/Sources/Byre/Project.swift b/mac/Sources/Byre/Project.swift index 00e2bfe..1b93e30 100644 --- a/mac/Sources/Byre/Project.swift +++ b/mac/Sources/Byre/Project.swift @@ -80,7 +80,8 @@ struct ProjectView: View { guard let p = store.focusedProject() else { return } - let rows = nested(store, (store.tasks[p.id] ?? []).filter { $0.status == .active && !$0.background }).map(\.task.id) + let active = (store.tasks[p.id] ?? []).filter { $0.status == .active } + let rows = nested(store, active.filter { !$0.background }).map(\.task.id) + active.filter(\.background).map(\.id) if rows.isEmpty { return }