소스 검색

fix: inverted condition when propogating status

Sam Jaffe 3 주 전
부모
커밋
8025d32ea7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 })
           }
         }