diff --git a/react/src/components/AgentSelect.tsx b/react/src/components/AgentSelect.tsx index f723ecea5..e7dceed76 100644 --- a/react/src/components/AgentSelect.tsx +++ b/react/src/components/AgentSelect.tsx @@ -10,22 +10,12 @@ import React from 'react'; import { useTranslation } from 'react-i18next'; import { useLazyLoadQuery } from 'react-relay'; -type AgentInfo = { - label: string; - value: string; -}; - interface Props extends SelectProps { - onSelectAgent?: (agentInfo: AgentInfo) => void; autoSelectDefault?: boolean; fetchKey?: string; } -const AgentSelector: React.FC = ({ - onSelectAgent, - fetchKey, - ...selectProps -}) => { +const AgentSelector: React.FC = ({ fetchKey, ...selectProps }) => { const { t } = useTranslation(); const [value, setValue] = useControllableValue(selectProps); @@ -116,8 +106,7 @@ const AgentSelector: React.FC = ({ return (