Skip to content

Commit

Permalink
fix: 💄 only show processing form once if event is linked to multiple …
Browse files Browse the repository at this point in the history
…agenda items and form is cancelled
  • Loading branch information
ksalzke committed Feb 9, 2022
1 parent c61a592 commit dd0d3c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Agendas.omnifocusjs/Resources/agendasLibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,9 @@
return null // no criteria matched, event task still exists
}).filter(id => id !== null)

for (const eventID of relevantEventIDs) {
const uniqueEventIDs = Array.from(new Set(relevantEventIDs))

for (const eventID of uniqueEventIDs) {
await agendasLibrary.processEvent(eventID)
await agendasLibrary.cleanUp()
}
Expand Down

0 comments on commit dd0d3c9

Please sign in to comment.