|
|
@ -13,7 +13,7 @@ import DialogUserGantt from './DialogUserGantt'; |
|
|
|
|
|
|
|
|
|
|
|
import { Link } from 'react-router-dom'; |
|
|
|
import { Link } from 'react-router-dom'; |
|
|
|
|
|
|
|
|
|
|
|
const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName, hierarchyId, hierarchyName }) => { |
|
|
|
const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName, hierarchyId, hierarchyName, openDialogHierarchy }) => { |
|
|
|
const token = localStorage.getItem("token") |
|
|
|
const token = localStorage.getItem("token") |
|
|
|
const HEADER = { |
|
|
|
const HEADER = { |
|
|
|
headers: { |
|
|
|
headers: { |
|
|
@ -31,10 +31,7 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName |
|
|
|
const [humanResource, setHumanResource] = useState([]) |
|
|
|
const [humanResource, setHumanResource] = useState([]) |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
if (idTask > 0) { |
|
|
|
if (hierarchyId > 0 || idTask > 0 && !openDialogHierarchy) { |
|
|
|
getdataGantt(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (hierarchyId > 0) { |
|
|
|
|
|
|
|
getdataGantt(); |
|
|
|
getdataGantt(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, [hierarchyId, idTask, openDialog]) |
|
|
|
}, [hierarchyId, idTask, openDialog]) |
|
|
|