Skip to content

Commit

Permalink
reduce reliance on lodash
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Low <[email protected]>
  • Loading branch information
CollinBeczak and jake-low authored Dec 3, 2024
1 parent c96d96e commit 37d926c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/services/Task/BoundedTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ export const fetchBoundedTaskMarkers = function(criteria, limit = 50, skipDispat
).execute().then(({ result }) => {
let tasks = result ? Object.values(result) : [];
const totalCount = tasks.length
tasks = _map(tasks, task =>
Object.assign(task, {}, task.pointReview)
)
tasks = tasks.map(task => Object.assign(task, task.pointReview))

!skipDispatch && dispatch(receiveBoundedTasks(tasks, RequestStatus.success, fetchId, totalCount))
if (!skipDispatch) {
dispatch(receiveBoundedTasks(tasks, RequestStatus.success, fetchId, totalCount))
}

return {
tasks,
Expand Down

0 comments on commit 37d926c

Please sign in to comment.