Procházet zdrojové kódy

refactor: use anonymous function when propogating subtask updates

Sam Jaffe před 2 týdny
rodič
revize
91dace4193
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 })
             }
           }