Merge pull request #481 from monotykamary/fix/noop-on-no-renames

fix: avoid deleting configs if the currentApiConfigName is the same
This commit is contained in:
Matt Rubens
2025-01-22 07:32:38 -08:00
committed by GitHub

View File

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