diff --git a/src/views/Dashboard/DashboardProject.js b/src/views/Dashboard/DashboardProject.js
index f2bcc41..697901a 100644
--- a/src/views/Dashboard/DashboardProject.js
+++ b/src/views/Dashboard/DashboardProject.js
@@ -126,6 +126,7 @@ const DashboardProject = () => {
const [isReadyGanttParents, setIsReadyGanttParents] = useState(false);
const [calculationStatus, setCalculationStatus] = useState(false);
const [isHierarchy, setIsHierarchy] = useState(false);
+ const [isScurve, setIsScurve] = useState(false);
let history = useHistory();
useEffect(() => {
@@ -136,6 +137,12 @@ const DashboardProject = () => {
getComments();
getGantt();
getGanttParents();
+ const currentURL = window.location.href;
+ if (currentURL.includes("dashboard-project")) {
+ setIsScurve(true);
+ } else {
+ setIsScurve(false);
+ }
return () => {
console.log("unmount RenderMap");
};
@@ -1018,7 +1025,7 @@ const DashboardProject = () => {