diff --git a/apps/tauri/src/lib/stores/app.svelte.ts b/apps/tauri/src/lib/stores/app.svelte.ts index 18f17e5..2b57daa 100644 --- a/apps/tauri/src/lib/stores/app.svelte.ts +++ b/apps/tauri/src/lib/stores/app.svelte.ts @@ -525,22 +525,10 @@ async function addGoogleTasksWorkspace( async function forgetMissingWorkspace() { if (!missingWorkspace) return; + // removeWorkspace handles switching to the next available workspace (or + // falling back to the setup screen when none remain); just delegate. await removeWorkspace(missingWorkspace); missingWorkspace = null; - config = await invoke("get_config"); - if (hasWorkspace) { - // Switch to the next available workspace - const nextName = Object.keys(config!.workspaces)[0]; - if (nextName) { - await switchWorkspace(nextName); - screen = "tasks"; - return; - } - } - screen = "setup"; - lists = []; - tasks = []; - activeListId = null; } function setScreen(s: Screen) {