Skip to content

Commit 2ba7200

Browse files
authored
Fix discard changes in settings (#2485)
1 parent 3cc81c7 commit 2ba7200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const App = () => {
111111
{tab === "mcp" && <McpView onDone={() => switchTab("chat")} />}
112112
{tab === "history" && <HistoryView onDone={() => switchTab("chat")} />}
113113
{tab === "settings" && (
114-
<SettingsView ref={settingsRef} onDone={() => switchTab("chat")} targetSection={currentSection} />
114+
<SettingsView ref={settingsRef} onDone={() => setTab("chat")} targetSection={currentSection} />
115115
)}
116116
<ChatView
117117
isHidden={tab !== "chat"}

0 commit comments

Comments
 (0)