mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
fix: avoid deleting configs if the currentApiConfigName hasn't been changed
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user