fix: resolve race conditions during impersonation handoff by reloading directly from dataService
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user