|
|
|
@ -13,7 +13,7 @@ import DialogUserGantt from './DialogUserGantt';
|
|
|
|
|
|
|
|
|
|
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 HEADER = { |
|
|
|
|
headers: { |
|
|
|
@ -31,10 +31,7 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName
|
|
|
|
|
const [humanResource, setHumanResource] = useState([]) |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
if (idTask > 0) { |
|
|
|
|
getdataGantt(); |
|
|
|
|
} |
|
|
|
|
if (hierarchyId > 0) { |
|
|
|
|
if (hierarchyId > 0 || idTask > 0 && !openDialogHierarchy) { |
|
|
|
|
getdataGantt(); |
|
|
|
|
} |
|
|
|
|
}, [hierarchyId, idTask, openDialog]) |
|
|
|
|