@@ -62,7 +62,6 @@ const Agent = forwardRef<AgentRef, { onFeaturesLoad?: (features: FeaturesConfigF
6262 const { id } = useParams ( ) ;
6363 const { message } = App . useApp ( )
6464 const [ form ] = Form . useForm ( )
65- const [ loading , setLoading ] = useState ( false )
6665 const [ data , setData ] = useState < Config | null > ( null ) ;
6766 const modelConfigModalRef = useRef < ModelConfigModalRef > ( null )
6867 const [ modelList , setModelList ] = useState < Model [ ] > ( [ ] )
@@ -94,7 +93,6 @@ const Agent = forwardRef<AgentRef, { onFeaturesLoad?: (features: FeaturesConfigF
9493 * Fetch agent configuration data
9594 */
9695 const getData = ( ) => {
97- setLoading ( true )
9896 getApplicationConfig ( id as string ) . then ( res => {
9997 const response = res as Config
10098 const { skills, variables } = response
@@ -127,8 +125,6 @@ const Agent = forwardRef<AgentRef, { onFeaturesLoad?: (features: FeaturesConfigF
127125 tools : allTools
128126 } )
129127 onFeaturesLoad ?.( response . features )
130- } ) . finally ( ( ) => {
131- setLoading ( false )
132128 } )
133129 }
134130
@@ -421,7 +417,6 @@ const Agent = forwardRef<AgentRef, { onFeaturesLoad?: (features: FeaturesConfigF
421417 console . log ( 'agent values' , values )
422418 return (
423419 < >
424- { loading && < Spin fullscreen > </ Spin > }
425420 < Row className = "rb:h-full!" gutter = { 12 } >
426421 < Col span = { 12 } className = "rb:h-full!" >
427422 < Form form = { form } >
0 commit comments