Bladeren bron

refactor: use anonymous function when propogating subtask updates

Sam Jaffe 2 weken geleden
bovenliggende
commit
91dace4193
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      Todos/View/TaskView.swift

+ 1 - 1
Todos/View/TaskView.swift

@@ -35,7 +35,7 @@ struct TaskView: View {
             if task.status.isStrong {
               task.subtasks
                 .filter({ !$0.status.isStrong })
-                .forEach({ subtask in subtask.status = task.status })
+                .forEach({ $0.status = task.status })
             }
           }