Skip to content

Commit

Permalink
fix: 🐛 only return active or blocked action groups
Browse files Browse the repository at this point in the history
Dropped/completed action groups will no longer be included in list
  • Loading branch information
ksalzke committed Jan 12, 2022
1 parent ac6bb85 commit 06c455b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moveToActionGroup.omnifocusjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"label": "Move to Action Group",
"shortLabel": "Move to Action Group",
"image": "arrow.right.to.line.alt",
"version": "2.4.0",
"version": "2.4.1",
}*/
(() => {
const action = new PlugIn.Action(async selection => {
Expand Down Expand Up @@ -147,7 +147,7 @@
}

// check which action groups exist
const groups = proj.flattenedTasks.filter(proj => proj.tags.includes(tag))
const groups = proj.flattenedTasks.filter(task => task.tags.includes(tag) && (task.taskStatus === Task.Status.Available || task.taskStatus === Task.Status.Blocked))

// if there are relevant action groups show selection form
const getGroupPath = (task) => {
Expand Down

0 comments on commit 06c455b

Please sign in to comment.