mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-07 02:58:15 +00:00
fix: avoid deleting configs if the currentApiConfigName hasn't been changed
This commit is contained in:
parent
e333bfa84f
commit
8ad904a13c
1 changed files with 3 additions and 1 deletions
|
|
@ -58,7 +58,9 @@ const ApiConfigManager = ({
|
|||
if (editState === "new") {
|
||||
onUpsertConfig(trimmedValue)
|
||||
} else if (editState === "rename" && currentApiConfigName) {
|
||||
onRenameConfig(currentApiConfigName, trimmedValue)
|
||||
if (currentApiConfigName !== trimmedValue) {
|
||||
onRenameConfig(currentApiConfigName, trimmedValue)
|
||||
}
|
||||
}
|
||||
|
||||
setEditState(null)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue