Browse Source

Using current gantt instead of last gantt

pull/2/head
Wahyu Ramadhan 2 years ago
parent
commit
0c1e2b01e1
  1. 3
      src/views/Dashboard/DashboardProject.js

3
src/views/Dashboard/DashboardProject.js

@ -40,7 +40,7 @@ const DashboardProject = () => {
}
}
const { PROJECT_ID, GANTT_ID } = useParams();
const URL_GANTT = `https://adw-gantt.ospro.id/view-mode/index.html?base_url=${BASE_OSPRO}/api&gantt_id=${GANTT_ID}&proyek_id=${PROJECT_ID}&token=${token}&ro=1`;
const URL_GANTT = `http://localhost/adw-gantt/view-mode/index.html?base_url=${BASE_OSPRO}/api&gantt_id=${GANTT_ID}&proyek_id=${PROJECT_ID}&token=${token}&ro=1`;
const mapRef = useRef()
const [projectName, setProjectName] = useState("");
const [projectManagerName, setProjectManagerName] = useState("");
@ -235,6 +235,7 @@ const DashboardProject = () => {
const URL = `${BASE_OSPRO}/api/project/get-s-curve`;
const payload = {
"project_id": PROJECT_ID.toString(),
"gantt_id": GANTT_ID.toString(),
"period": "week",
// "end_date": moment(new Date()).format('YYYY-MM-DD')
}

Loading…
Cancel
Save