From dda602ecf0c809b6466b89e1f7a86a8505228025 Mon Sep 17 00:00:00 2001 From: wahyu Date: Wed, 20 Sep 2023 14:01:40 +0700 Subject: [PATCH] project detail use gantt id --- src/views/Dashboard/DashboardProject.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/Dashboard/DashboardProject.js b/src/views/Dashboard/DashboardProject.js index ac105d5..c0ebe00 100644 --- a/src/views/Dashboard/DashboardProject.js +++ b/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)