diff --git a/src/pages/Settings.tsx b/src/pages/Settings.tsx index d62dc054..7319f89e 100644 --- a/src/pages/Settings.tsx +++ b/src/pages/Settings.tsx @@ -1441,10 +1441,10 @@ export default function Settings() { if (inv) { setPastedServerInvite(inv); setShowAddForm(true); - setActiveTab('server'); + setActiveTab('servers'); navigate( { pathname: location.pathname, search: location.search, hash: location.hash }, - { replace: true, state: { tab: 'server' as Tab } }, + { replace: true, state: { tab: 'servers' as Tab } }, ); return; } diff --git a/src/utils/switchActiveServer.ts b/src/utils/switchActiveServer.ts index a3215985..fe13552c 100644 --- a/src/utils/switchActiveServer.ts +++ b/src/utils/switchActiveServer.ts @@ -1,12 +1,7 @@ import { pingWithCredentials, scheduleInstantMixProbeForServer } from '../api/subsonic'; import type { ServerProfile } from '../store/authStore'; import { useAuthStore } from '../store/authStore'; -import { usePlayerStore } from '../store/playerStore'; -/** - * Ping, update server identity / Instant Mix probe, set active server, clear local playback - * and pull the new server's saved play queue. - */ export async function switchActiveServer(server: ServerProfile): Promise { try { const ping = await pingWithCredentials(server.url, server.username, server.password); @@ -21,8 +16,6 @@ export async function switchActiveServer(server: ServerProfile): Promise