From 825544002ed2dc0b14786372864238657e055fc6 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Mon, 15 Sep 2025 13:58:24 -0700 Subject: [PATCH] Clarified code slightly --- client/src/BotConfig.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/BotConfig.tsx b/client/src/BotConfig.tsx index d6da9bf..d672cba 100644 --- a/client/src/BotConfig.tsx +++ b/client/src/BotConfig.tsx @@ -35,10 +35,9 @@ const BotConfigComponent: React.FC = ({ botInstanceId, botName, setError(null); // Use bot instance ID if available, otherwise fall back to bot name - const identifier = botInstanceId || botName; const endpointPath = botInstanceId - ? `/api/bots/config/schema/instance/${identifier}` - : `/api/bots/config/schema/${identifier}`; + ? `/api/bots/config/schema/instance/${botInstanceId}` + : `/api/bots/config/schema/${botName}`; // Use refresh endpoint if force refresh is requested const url = forceRefresh ? `${base}${endpointPath}/refresh` : `${base}${endpointPath}`;