diff --git a/package.json b/package.json index 2a632d9..1bc2286 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "autonomy-studio-launcher", - "version": "1.0.25", + "version": "1.0.26", "description": "Autonomy Studio v2 Frontend", "main": "./out/main/index.js", "author": { diff --git a/src/renderer/src/pages/Dashboard.tsx b/src/renderer/src/pages/Dashboard.tsx index 3107514..a3f013e 100644 --- a/src/renderer/src/pages/Dashboard.tsx +++ b/src/renderer/src/pages/Dashboard.tsx @@ -16,6 +16,7 @@ interface DashboardProps { } const LAUNCHER_API_BASE_URL = (import.meta.env.VITE_ATNMY_STDO_API_BASE_URL || 'http://localhost:4200').replace(/\/+$/, '') +const MANUAL_BASE_URL = (import.meta.env.VITE_MANUAL_BASE_URL || 'http://localhost:5177').replace(/\/+$/, '') const NOTICE_READ_STORAGE_KEY = 'atnmy.notice.readSignatures' const LAST_LAUNCHED_APP_STORAGE_KEY = 'atnmy.launcher.lastLaunchedApp' const IS_DEV = import.meta.env.DEV @@ -355,7 +356,7 @@ function Dashboard({ authSession, onSessionUpdate, onLogout, onSessionExpired }: if (response.status === 401) { const refreshed = await refreshSession() if (!refreshed) { - if (!cancelled) onLogout() + if (!cancelled) onSessionExpired() return } @@ -393,7 +394,7 @@ function Dashboard({ authSession, onSessionUpdate, onLogout, onSessionExpired }: return () => { cancelled = true } - }, [authSession, onLogout, onSessionUpdate, refreshSession]) + }, [authSession, onSessionExpired, onSessionUpdate, refreshSession]) useEffect(() => { let cancelled = false @@ -998,7 +999,7 @@ function Dashboard({ authSession, onSessionUpdate, onLogout, onSessionExpired }: