diff --git a/ui/admin/app/components/auth-and-model-providers/ProviderDeconfigure.tsx b/ui/admin/app/components/auth-and-model-providers/ProviderDeconfigure.tsx index b1dcabaaf..490a6c93d 100644 --- a/ui/admin/app/components/auth-and-model-providers/ProviderDeconfigure.tsx +++ b/ui/admin/app/components/auth-and-model-providers/ProviderDeconfigure.tsx @@ -100,7 +100,7 @@ export function ProviderDeconfigure({ ); } -function warningMessage(t: string | undefined): string | undefined { +function warningMessage(t?: string): string | undefined { switch (t) { case "modelprovider": return "Deconfiguring this model provider will remove all models associated with it and reset it to its unconfigured state. You will need to set up the model provider once again to use it."; diff --git a/ui/admin/app/components/auth-and-model-providers/ProviderIcon.tsx b/ui/admin/app/components/auth-and-model-providers/ProviderIcon.tsx index dba856ec0..8ad59b91b 100644 --- a/ui/admin/app/components/auth-and-model-providers/ProviderIcon.tsx +++ b/ui/admin/app/components/auth-and-model-providers/ProviderIcon.tsx @@ -22,10 +22,11 @@ export function ProviderIcon({ className={cn({ "h-6 w-6": size === "md", "h-16 w-16": size === "lg", - "dark:invert": - provider.id !== CommonModelProviderIds.AZURE_OPENAI && - provider.id !== CommonAuthProviderIds.GOOGLE && - provider.id !== CommonAuthProviderIds.GITHUB, + "dark:invert": ![ + CommonModelProviderIds.AZURE_OPENAI, + CommonAuthProviderIds.GOOGLE, + CommonAuthProviderIds.GITHUB, + ].includes(provider.id), })} /> ) : (