Improve the frontend modals

This commit is contained in:
Urtzi Alfaro
2025-10-27 16:33:26 +01:00
parent 61376b7a9f
commit 858d985c92
143 changed files with 9289 additions and 2306 deletions

View File

@@ -152,6 +152,14 @@ export const useAuthStore = create<AuthState>()(
apiClient.setRefreshToken(null);
apiClient.setTenantId(null);
// Clear tenant store to remove cached tenant data
// Import dynamically to avoid circular dependencies
import('./tenant.store').then(({ useTenantStore }) => {
useTenantStore.getState().clearTenants();
}).catch(err => {
console.warn('Failed to clear tenant store on logout:', err);
});
set({
user: null,
token: null,