diff --git a/web/src/dashboard.ts b/web/src/dashboard.ts index 7563849..f2ba4b0 100644 --- a/web/src/dashboard.ts +++ b/web/src/dashboard.ts @@ -155,7 +155,7 @@ async function saveDashboardSettings(): Promise { if (sectionResponse.ok) { const data = await sectionResponse.json(); renderDashboardCollections(data.sections); - localStorage.setItem("selectedLibraryId", libraryId); + localStorage.setItem("selectedLibrary", libraryId); } else { showToast("Failed to refresh sections", "error"); } @@ -511,13 +511,6 @@ function initDashboard() { } }); } - const savedLibrary = localStorage.getItem("selectedLibrary"); - const currentLibrary = new URLSearchParams(window.location.search).get( - "library_id", - ); - if (savedLibrary && savedLibrary !== currentLibrary) { - window.location.href = `/dashboard?library_id=${savedLibrary}`; - } }); }