diff --git a/src/App.tsx b/src/App.tsx index a2cfb7c..31e17dd 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -29,8 +29,8 @@ export const App = () => { }, []); useEffect(() => { settings.subscribe((settings) => { - if (settings !== undefined && settings.calibreLibraryPath?.length > 0) { - setLibraryPath(settings.calibreLibraryPath); + if (settings !== undefined) { + setLibraryPath(settings.calibreLibraryPath || null); setIsLoading(false); } }); diff --git a/src/components/organisms/Sidebar.tsx b/src/components/organisms/Sidebar.tsx index dc63ce8..6e88511 100644 --- a/src/components/organisms/Sidebar.tsx +++ b/src/components/organisms/Sidebar.tsx @@ -242,12 +242,6 @@ const SidebarPure = ({ - -