Explorar el Código

refactor: use anonymous function when propogating subtask updates

Sam Jaffe hace 2 semanas
padre
commit
91dace4193
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 })
             }
           }