From 1ec4d33168ca30caa3761f3390878aa6aaaf8261 Mon Sep 17 00:00:00 2001 From: CollinBeczak Date: Fri, 19 Jul 2024 12:47:44 -0500 Subject: [PATCH] update implementation of totalTaskCounts --- src/services/Task/BoundedTask.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/services/Task/BoundedTask.js b/src/services/Task/BoundedTask.js index 1c521e0f1..74a8638fd 100644 --- a/src/services/Task/BoundedTask.js +++ b/src/services/Task/BoundedTask.js @@ -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) )