Skip to content

Commit

Permalink
update implementation of totalTaskCounts
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Nov 15, 2024
1 parent abb0581 commit f231806
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/services/Task/BoundedTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,8 @@ export const fetchBoundedTaskMarkers = function(criteria, limit = 50, skipDispat
} : null,
}
).execute().then(normalizedResults => {
const totalCount = normalizedResults.result.total

let tasks = _values(_get(normalizedResults, 'entities.tasks', {}))
let tasks = _values(_get(normalizedResults, 'result', {}))
const totalCount = tasks.length
tasks = _map(tasks, task =>
Object.assign(task, {}, task.pointReview)
)
Expand Down

0 comments on commit f231806

Please sign in to comment.