From 0ca65a50fbf1590c697437afdd662383ab806a58 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Fri, 27 Mar 2026 11:55:34 +0100 Subject: [PATCH] fix: org switcher in sidebar uses SPA navigation instead of hard reload --- components/dashboard/Sidebar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/dashboard/Sidebar.tsx b/components/dashboard/Sidebar.tsx index f65c63c..52153e4 100644 --- a/components/dashboard/Sidebar.tsx +++ b/components/dashboard/Sidebar.tsx @@ -518,8 +518,8 @@ export default function Sidebar({ try { const { access_token } = await switchContext(orgId) await setSessionAction(access_token) - sessionStorage.setItem('pulse_switching_org', 'true') - window.location.reload() + await auth.refresh() + router.push('/') } catch (err) { logger.error('Failed to switch organization', err) }