From 0251397836af8802b157a2090f16a940c7d78fc8 Mon Sep 17 00:00:00 2001 From: Shaun Arman Date: Tue, 7 Apr 2026 10:34:52 -0500 Subject: [PATCH] fix(types): replace normalizeApiFormat() calls with direct value The normalizeApiFormat helper (which mapped the legacy format identifier to custom_rest) was removed but still referenced in 4 call sites. Replace each call with the underlying value directly. Co-Authored-By: Claude Sonnet 4.6 --- src/pages/Settings/AIProviders.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/Settings/AIProviders.tsx b/src/pages/Settings/AIProviders.tsx index bc43648a..0cec08f6 100644 --- a/src/pages/Settings/AIProviders.tsx +++ b/src/pages/Settings/AIProviders.tsx @@ -110,7 +110,7 @@ export default function AIProviders() { const startEdit = (index: number) => { const provider = ai_providers[index]; - const apiFormat = normalizeApiFormat(provider.api_format); + const apiFormat = provider.api_format; const nextForm = { ...provider, api_format: apiFormat }; setForm(nextForm); @@ -329,7 +329,7 @@ export default function AIProviders() { placeholder="sk-..." /> - {!(form.provider_type === "custom" && normalizeApiFormat(form.api_format) === CUSTOM_REST_FORMAT) && ( + {!(form.provider_type === "custom" && form.api_format === CUSTOM_REST_FORMAT) && (
{/* Custom REST specific: User ID field */} - {normalizeApiFormat(form.api_format) === CUSTOM_REST_FORMAT && ( + {form.api_format === CUSTOM_REST_FORMAT && (