Browse Source

project detail use gantt id

pull/1/head
wahyu 1 year ago
parent
commit
dda602ecf0
  1. 5
      src/views/Dashboard/DashboardProject.js

5
src/views/Dashboard/DashboardProject.js

@ -268,7 +268,10 @@ const DashboardProject = () => {
const getProjectDetail = async () => {
setIsReadyProjectDetail(false);
const URL = `${BASE_OSPRO}/api/project/detail/${PROJECT_ID}`;
let URL = `${BASE_OSPRO}/api/project/detail/${PROJECT_ID}`;
if (GANTT_ID) {
URL = `${BASE_OSPRO}/api/project/detail/${PROJECT_ID}/${GANTT_ID}`;
}
const result = await axios
.get(URL, HEADER)
.then((res) => res)

Loading…
Cancel
Save