fix: resolve race conditions during impersonation handoff by reloading directly from dataService

This commit is contained in:
Cauê Faleiros
2026-03-11 15:33:38 -03:00
parent 7cb78f13c0
commit bf157687d4
3 changed files with 8 additions and 7 deletions

View File

@@ -100,9 +100,6 @@ export const SuperAdmin: React.FC = () => {
return;
}
await impersonateTenant(tenantId);
// Force a full reload to clear any cached context/state in the React app
window.location.hash = '#/';
window.location.reload();
} catch (err: any) {
alert(err.message || 'Erro ao tentar entrar na organização.');
}