fix: fixing-patient-list
This commit is contained in:
parent
d775d1fe0c
commit
59a9f8da15
@ -177,8 +177,8 @@ const ProfissionalPage = () => {
|
||||
}
|
||||
})();
|
||||
return () => { mounted = false; };
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
// Re-run when user id becomes available so patients assigned to the logged-in doctor are loaded
|
||||
}, [user?.id]);
|
||||
|
||||
// Carregar perfil do médico correspondente ao usuário logado
|
||||
useEffect(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user