diff --git a/dashboard/src/components/AppShell.tsx b/dashboard/src/components/AppShell.tsx index b166e14..9e1271e 100644 --- a/dashboard/src/components/AppShell.tsx +++ b/dashboard/src/components/AppShell.tsx @@ -209,11 +209,14 @@ export function AppShell() { summary={summary} metrics={metrics} onToggleSidebar={() => setSidebarCollapsed((value) => !value)} - onLogout={() => { - window.localStorage.removeItem('xworkspace-bridge-token'); - setAuthToken(''); - setTokenInput(''); - }} + onLogout={ + authRequired + ? () => { + window.localStorage.removeItem('xworkspace-bridge-token'); + window.location.reload(); + } + : undefined + } />