Skip to content

Commit c96d96e

Browse files
reduce reliance on lodash
Co-authored-by: Jake Low <[email protected]>
1 parent 180bc55 commit c96d96e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/Task/BoundedTask.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ export const fetchBoundedTaskMarkers = function(criteria, limit = 50, skipDispat
123123
taskPropertySearch: filters.taskPropertySearch
124124
} : null,
125125
}
126-
).execute().then(normalizedResults => {
127-
let tasks = _values(_get(normalizedResults, 'result', {}))
126+
).execute().then(({ result }) => {
127+
let tasks = result ? Object.values(result) : [];
128128
const totalCount = tasks.length
129129
tasks = _map(tasks, task =>
130130
Object.assign(task, {}, task.pointReview)

0 commit comments

Comments
 (0)