Browse Source

Fix unnecessary request on project menu

pull/2/head
Wahyu Ramadhan 1 year ago
parent
commit
abb3c39a7d
  1. 8
      src/views/SimproV2/CreatedProyek/AsignHrProject.js

8
src/views/SimproV2/CreatedProyek/AsignHrProject.js

@ -34,9 +34,11 @@ const AssignHrProject = ({ openDialog, closeDialog, toggleDialog, idTask, toolsR
}, [openDialog]);
useEffect(() => {
getDataUser();
getDataProjectRole();
}, [])
if (dataUserToProject.length > 0) {
getDataUser();
getDataProjectRole();
}
}, [dataUserToProject])
const getDataAssignHr = async () => {
const payload = {

Loading…
Cancel
Save