Explorar o código

refactor: use anonymous function when propogating subtask updates

Sam Jaffe hai 2 semanas
pai
achega
91dace4193
Modificáronse 1 ficheiros con 1 adicións e 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 })
             }
           }