Skip to content

Commit

Permalink
fix: project detail metadata not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
varun2948 committed Jun 29, 2023
1 parent 74cb4d1 commit fa0f0db
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/frontend/fmtm_openlayer_map/src/api/Project.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@ export const ProjectById = (url, existingProjectList) => {
{ id: resp.id, taskBoundries: persistingValues },
])
);
dispatch(
ProjectActions.SetProjectInfo({id:resp.id,
priority:resp.priority || 2,
priority_str:resp.priority_str || "MEDIUM",
title:resp.project_info?.[0]?.name,
location_str:resp.location_str,
description:resp.description,
num_contributors:resp.num_contributors,
total_tasks:resp.total_tasks,
tasks_mapped:resp.tasks_mapped,
tasks_validated:resp.tasks_validated,
tasks_bad:resp.tasks_bad})
);
} catch (error) {
// console.log('error :', error)
}
Expand Down

0 comments on commit fa0f0db

Please sign in to comment.