Quellcode durchsuchen

fix: inverted condition when propogating status

Sam Jaffe vor 3 Wochen
Ursprung
Commit
8025d32ea7
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      Todos/View/TaskView.swift

+ 1 - 1
Todos/View/TaskView.swift

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