diff --git a/src/pages/team/Requests.jsx b/src/pages/team/Requests.jsx index d5f2333..d354a84 100755 --- a/src/pages/team/Requests.jsx +++ b/src/pages/team/Requests.jsx @@ -44,52 +44,81 @@ export default function Requests() {
Client requests will appear here.
- ) : submissions.map(sub => { - const task = tasks.find(t => t.id === sub.task_id); - const project = projects.find(p => p.id === task?.project_id); - const company = companies.find(co => co.id === project?.company_id); + ) : (() => { + // Group by task_id + version_number + const groupMap = {}; + submissions.forEach(sub => { + const key = `${sub.task_id}-${sub.version_number}`; + if (!groupMap[key]) groupMap[key] = []; + groupMap[key].push(sub); + }); - return ( -0 ? 12 : 0 }}>{primary.description}
+ + {amendments.map(amendment => ( +{amendment.description}
+{sub.description}
-