From 49ebda147506bea5b5efd1fef2b7cacab73228e6 Mon Sep 17 00:00:00 2001 From: royallsilwallz Date: Thu, 2 Nov 2023 11:28:29 +0545 Subject: [PATCH] Fix incomplete contributor list for validating multiple tasksin tasks comments issue --- .../src/components/taskSelection/actionSidebars.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/taskSelection/actionSidebars.js b/frontend/src/components/taskSelection/actionSidebars.js index 561d23d2fe..6efaa3839f 100644 --- a/frontend/src/components/taskSelection/actionSidebars.js +++ b/frontend/src/components/taskSelection/actionSidebars.js @@ -586,19 +586,12 @@ const TaskValidationSelector = ({ // the contributors is filled only on the case of single task validation, // so we need to fetch the task history in the case of multiple task validation useEffect(() => { - if (showCommentInput && isValidatingMultipleTasks && !contributors.length) { + if (showCommentInput && isValidatingMultipleTasks) { fetchLocalJSONAPI(`projects/${projectId}/tasks/${id}/`).then((response) => setContributorsList(getTaskContributors(response.taskHistory, userDetails.username)), ); } - }, [ - isValidatingMultipleTasks, - showCommentInput, - contributors, - id, - projectId, - userDetails.username, - ]); + }, [isValidatingMultipleTasks, showCommentInput, id, projectId, userDetails.username]); return (
@@ -650,7 +643,7 @@ const TaskValidationSelector = ({