mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
fix(vscode): clear params when switching MCP installation method
This commit is contained in:
@@ -119,7 +119,12 @@ export const InstallModal = (props: Props) => {
|
||||
current={method()}
|
||||
value={(m: McpInstallationMethod) => m.name}
|
||||
label={(m: McpInstallationMethod) => m.name}
|
||||
onSelect={(v: McpInstallationMethod | undefined) => v && setMethod(v)}
|
||||
onSelect={(v: McpInstallationMethod | undefined) => {
|
||||
if (v) {
|
||||
setMethod(v)
|
||||
setParams({})
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</Show>
|
||||
|
||||
Reference in New Issue
Block a user