Skip to content

Commit

Permalink
fix: submission detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
varun2948 committed Aug 29, 2023
1 parent c905adc commit c9a5845
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/frontend/fmtm_openlayer_map/src/api/Project.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export const ProjectById = (url, existingProjectList,projectId) => {
const project = await CoreModules.axios.get(url);
const taskBbox = await CoreModules.axios.get(`${environment.baseApiUrl}/tasks/point_on_surface?project_id=${projectId}`);
const resp = project.data;
console.log("loading :", project.data);
const persistingValues = resp.project_tasks.map((data) => {
return {
id: data.id,
Expand Down
6 changes: 3 additions & 3 deletions src/frontend/fmtm_openlayer_map/src/views/Tasks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const TasksSubmission = () => {
encodedProjectId
)}`,
state.projectTaskBoundries,
environment.decode(encodedId)
environment.decode(encodedProjectId)
),
state.projectTaskBoundries
);
Expand All @@ -86,7 +86,7 @@ const TasksSubmission = () => {
encodedProjectId
)}`,
state.projectTaskBoundries,
environment.decode(encodedId)
environment.decode(encodedProjectId)
),
state.projectTaskBoundries
);
Expand Down Expand Up @@ -300,7 +300,7 @@ const TasksSubmission = () => {
<CoreModules.Link
style={{ textDecoration: "auto" }}
className="submission-item"
to={`/project/${encodedProjectId}/tasks/${encodedTaskId}/submission/${submission.__id}`}
to={`/project/${encodedProjectId}/tasks/${encodedTaskId}/submission/${submission.instanceId}`}
>
<CoreModules.Box
sx={{
Expand Down

0 comments on commit c9a5845

Please sign in to comment.