Browse Source

check hierarchy

pull/1/head
wahyu 1 year ago
parent
commit
d272fdafac
  1. 2
      src/views/Dashboard/DashboardProject.js

2
src/views/Dashboard/DashboardProject.js

@ -357,7 +357,7 @@ const DashboardProject = () => {
const getSCurve = async () => { const getSCurve = async () => {
setIsReadySCurve(false); setIsReadySCurve(false);
let URL = `${BASE_OSPRO}/api/project/get-s-curve`; let URL = `${BASE_OSPRO}/api/project/get-s-curve`;
if (SCURVE && SCURVE == "1") { if (SCURVE && SCURVE == "1" && isHierarchy) {
URL = `${BASE_OSPRO}/api/project/calculate-s-curve`; URL = `${BASE_OSPRO}/api/project/calculate-s-curve`;
} }

Loading…
Cancel
Save