mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Minor code cleanup
This commit is contained in:
parent
525b7424fe
commit
5f3ace4379
4 changed files with 6 additions and 15 deletions
|
|
@ -889,9 +889,6 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|||
await this.postStateToWebview()
|
||||
}
|
||||
}
|
||||
|
||||
// this.postMessageToWebview({ type: "listApiConfig", listApiConfig })
|
||||
|
||||
} catch (error) {
|
||||
console.error("Error delete api configuration:", error)
|
||||
vscode.window.showErrorMessage("Failed to delete api configuration")
|
||||
|
|
|
|||
|
|
@ -39,10 +39,8 @@ const GlamaModelPicker: React.FC = () => {
|
|||
|
||||
|
||||
useEffect(() => {
|
||||
if (apiConfiguration?.glamaModelId) {
|
||||
if (apiConfiguration?.glamaModelId !== searchTerm) {
|
||||
setSearchTerm(apiConfiguration?.glamaModelId)
|
||||
}
|
||||
if (apiConfiguration?.glamaModelId && apiConfiguration?.glamaModelId !== searchTerm) {
|
||||
setSearchTerm(apiConfiguration?.glamaModelId)
|
||||
}
|
||||
}, [apiConfiguration, searchTerm])
|
||||
|
||||
|
|
|
|||
|
|
@ -29,10 +29,8 @@ const OpenAiModelPicker: React.FC = () => {
|
|||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (apiConfiguration?.openAiModelId) {
|
||||
if (apiConfiguration?.openAiModelId !== searchTerm) {
|
||||
setSearchTerm(apiConfiguration?.openAiModelId)
|
||||
}
|
||||
if (apiConfiguration?.openAiModelId && apiConfiguration?.openAiModelId !== searchTerm) {
|
||||
setSearchTerm(apiConfiguration?.openAiModelId)
|
||||
}
|
||||
}, [apiConfiguration, searchTerm])
|
||||
|
||||
|
|
|
|||
|
|
@ -38,10 +38,8 @@ const OpenRouterModelPicker: React.FC = () => {
|
|||
}, [apiConfiguration])
|
||||
|
||||
useEffect(() => {
|
||||
if (apiConfiguration?.openRouterModelId) {
|
||||
if (apiConfiguration?.openRouterModelId !== searchTerm) {
|
||||
setSearchTerm(apiConfiguration?.openRouterModelId)
|
||||
}
|
||||
if (apiConfiguration?.openRouterModelId && apiConfiguration?.openRouterModelId !== searchTerm) {
|
||||
setSearchTerm(apiConfiguration?.openRouterModelId)
|
||||
}
|
||||
}, [apiConfiguration, searchTerm])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue