@@ -41,6 +41,7 @@ import {
4141 Check ,
4242 Circle ,
4343 Link ,
44+ Search ,
4445 ServerCog ,
4546} from "@wso2/oxygen-ui-icons-react" ;
4647import { formatDistanceToNow } from "date-fns" ;
@@ -254,9 +255,6 @@ export const AddLLMProviderComponent: React.FC = () => {
254255 // Track whether the user has manually edited env var names
255256 const envVarNamesEditedRef = useRef ( false ) ;
256257 const [ providerDrawerOpen , setProviderDrawerOpen ] = useState ( false ) ;
257- const [ providerSearchQuery , setProviderSearchQuery ] = useState ( "" ) ;
258- const searchTimerRef = useRef < ReturnType < typeof setTimeout > | null > ( null ) ;
259- const [ debouncedSearch , setDebouncedSearch ] = useState ( "" ) ;
260258
261259 const backHref =
262260 orgId && projectId && agentId
@@ -423,7 +421,7 @@ export const AddLLMProviderComponent: React.FC = () => {
423421 string ,
424422 {
425423 providerName ?: string ;
426- configuration : { policies ?: typeof policies } ;
424+ configuration : { policies ?: { name ?: string ; version ?: string ; paths ?: unknown [ ] } [ ] } ;
427425 }
428426 > = { } ;
429427 let hasAtLeastOneProvider = false ;
@@ -766,7 +764,7 @@ export const AddLLMProviderComponent: React.FC = () => {
766764 onClose = { ( ) => setProviderDrawerOpen ( false ) }
767765 providers = { providers }
768766 templateMap = { templateMap }
769- selectedUuid = { providerByEnv [ selectedEnvName ] }
767+ selectedUuid = { providerByEnv [ selectedEnvName ] ?? undefined }
770768 subtitle = {
771769 environments . length > 1
772770 ? `Choose the catalog provider for the ${ environments [ selectedEnvIndex ] ?. displayName ?? environments [ selectedEnvIndex ] ?. name ?? "" } environment.`
0 commit comments