From b42e0dca2f3c34d30aec176ee8e28c8a10c64f10 Mon Sep 17 00:00:00 2001 From: Phil Denhoff Date: Thu, 10 Oct 2024 20:41:18 -0700 Subject: [PATCH] Restore first-time setup --- src/App.tsx | 4 ++-- src/components/organisms/Sidebar.tsx | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) 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 = ({ - -