Explorar o código

Fix discard changes in settings (#2485)

Matt Rubens hai 8 meses
pai
achega
2ba7200f37
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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"}