Skip to content

Commit

Permalink
only discard tasks which have incomplete children
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Mar 17, 2023
1 parent 328214a commit 182d506
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Picker.omnifocusjs/Resources/pick.js
Expand Up @@ -86,7 +86,7 @@
.flatMap((p) => p.flattenedTasks.filter((t) =>
// to work around a bug in omnifocus beta. Shouldn't need this
// first condition eventually.
t.children.length == 0 &&
t.children.filter((t) => !t.completed).length == 0 &&
(t.taskStatus == Task.Status.Available ||
t.taskStatus == Task.Status.DueSoon ||
t.taskStatus == Task.Status.Next ||
Expand Down
2 changes: 1 addition & 1 deletion Picker.omnifocusjs/Resources/pick.ts
Expand Up @@ -135,7 +135,7 @@
(t: Task) =>
// to work around a bug in omnifocus beta. Shouldn't need this
// first condition eventually.
t.children.length == 0 &&
t.children.filter((t: Task) => !t.completed).length == 0 &&
(t.taskStatus == Task.Status.Available ||
t.taskStatus == Task.Status.DueSoon ||
t.taskStatus == Task.Status.Next ||
Expand Down

0 comments on commit 182d506

Please sign in to comment.