Fix discard changes in settings (#2485)

This commit is contained in:
Matt Rubens 2025-04-10 23:44:38 -04:00 committed by GitHub
parent 3cc81c73cf
commit 2ba7200f37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -111,7 +111,7 @@ const App = () => {
{tab === "mcp" && <McpView onDone={() => switchTab("chat")} />}
{tab === "history" && <HistoryView onDone={() => switchTab("chat")} />}
{tab === "settings" && (
<SettingsView ref={settingsRef} onDone={() => switchTab("chat")} targetSection={currentSection} />
<SettingsView ref={settingsRef} onDone={() => setTab("chat")} targetSection={currentSection} />
)}
<ChatView
isHidden={tab !== "chat"}