|
|
|
@ -31,18 +31,13 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName
|
|
|
|
|
const [humanResource, setHumanResource] = useState([]) |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
if (hierarchyId > 0 || idTask > 0 && !openDialogHierarchy) { |
|
|
|
|
if (openDialog && hierarchyId > 0 || idTask > 0 && !openDialogHierarchy) { |
|
|
|
|
getdataGantt(); |
|
|
|
|
} |
|
|
|
|
}, [hierarchyId, idTask, openDialog]) |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
if (!openDialog) { |
|
|
|
|
setDataGantt([]); |
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}, [openDialog]) |
|
|
|
|
}, [hierarchyId, idTask, openDialog]) |
|
|
|
|
|
|
|
|
|
const getDataHumanResource = async () => { |
|
|
|
|
const result = await axios |
|
|
|
|