Browse Source

Fix discard changes in settings (#2485)

Matt Rubens 10 months ago
parent
commit
2ba7200f37
1 changed files with 1 additions and 1 deletions
  1. 1 1
      webview-ui/src/App.tsx

+ 1 - 1
webview-ui/src/App.tsx

@@ -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"}