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