From 8b4e2e9f6ac0fb0a3625d891edde8b607e2a2a78 Mon Sep 17 00:00:00 2001 From: Nishit Suwal <81785002+NSUWAL123@users.noreply.github.com> Date: Fri, 21 Jun 2024 15:19:16 +0545 Subject: [PATCH] fix(submissionDetails): retrieve task_id directly from submissionDetails (#1595) --- src/frontend/src/views/SubmissionDetails.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/views/SubmissionDetails.tsx b/src/frontend/src/views/SubmissionDetails.tsx index 07db8aba9a..3356c8e289 100644 --- a/src/frontend/src/views/SubmissionDetails.tsx +++ b/src/frontend/src/views/SubmissionDetails.tsx @@ -23,7 +23,7 @@ const SubmissionDetails = () => { const submissionDetails = useAppSelector((state) => state.submission.submissionDetails); const submissionDetailsLoading = useAppSelector((state) => state.submission.submissionDetailsLoading); - const taskId = submissionDetails?.all?.task_id; + const taskId = submissionDetails?.task_id; useEffect(() => { dispatch(GetProjectDashboard(`${import.meta.env.VITE_API_URL}/projects/project_dashboard/${projectId}`));