From d4662d241626b9b7aa323839ef7ff13e006e733a Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 19 Mar 2026 21:15:03 +0100 Subject: [PATCH] Update App.jsx to include pendingChatLibrarySlug and toggleChatLibrary --- src/App.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index c073e27..06f5c6b 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1827,11 +1827,12 @@ async function createNewChat() { library={activeLibrary} jobs={libraryJobs} chatLibrarySlug={chatLibrarySlug} + pendingChatLibrarySlug={pendingChatLibrarySlug} onRefresh={async () => { await refreshLibraries(); await refreshLibraryJobs(); }} - onToggleChatLibrary={setChatLibrarySlug} + onToggleChatLibrary={toggleChatLibrary} onDeleted={(slug) => { if (activeLibrarySlug === slug) { const next = libraries.find(lib => lib.slug !== slug); @@ -1840,6 +1841,9 @@ async function createNewChat() { if (chatLibrarySlug === slug) { setChatLibrarySlug(null); } + if (pendingChatLibrarySlug === slug) { + setPendingChatLibrarySlug(null); + } }} />