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]); }, [openDialog]);
useEffect(() => { useEffect(() => {
getDataUser(); if (dataUserToProject.length > 0) {
getDataProjectRole(); getDataUser();
}, []) getDataProjectRole();
}
}, [dataUserToProject])
const getDataAssignHr = async () => { const getDataAssignHr = async () => {
const payload = { const payload = {

Loading…
Cancel
Save