Browse Source

Revert "fix: avoid deleting configs if the currentApiConfigName hasn't been changed"

This reverts commit 8ad904a13cdbf49ed5071703b9c850e58874fd00.
Matt Rubens 11 months ago
parent
commit
fc03237a4f
1 changed files with 1 additions and 3 deletions
  1. 1 3
      webview-ui/src/components/settings/ApiConfigManager.tsx

+ 1 - 3
webview-ui/src/components/settings/ApiConfigManager.tsx

@@ -58,9 +58,7 @@ const ApiConfigManager = ({
 		if (editState === "new") {
 			onUpsertConfig(trimmedValue)
 		} else if (editState === "rename" && currentApiConfigName) {
-			if (currentApiConfigName !== trimmedValue) {
-				onRenameConfig(currentApiConfigName, trimmedValue)
-			}
+			onRenameConfig(currentApiConfigName, trimmedValue)
 		}
 
 		setEditState(null)