Skip to content

Commit

Permalink
Count all tasks that match a collection
Browse files Browse the repository at this point in the history
Not only root tasks
  • Loading branch information
raimund-schluessler committed Jun 5, 2019
1 parent 7ce82af commit 7e4694a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/store/collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const getters = {
*
* Tasks have to
* - belong to a collection
* - be a root task
* - be uncompleted
*
* @param {Object} state The store data
Expand All @@ -52,7 +51,7 @@ const getters = {
let count = 0
rootState.calendars.calendars.forEach(calendar => {
let tasks = Object.values(calendar.tasks).filter(task => {
return isTaskInList(task, collectionId) && !task.related
return isTaskInList(task, collectionId, false)
})
if (rootState.tasks.searchQuery) {
tasks = tasks.filter(task => {
Expand Down

0 comments on commit 7e4694a

Please sign in to comment.