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}`;