Kaynağa Gözat

Fix discard changes in settings (#2485)

Matt Rubens 8 ay önce
ebeveyn
işleme
2ba7200f37
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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"}