File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
projects/app/src/pageComponents/app/detail/MCPTools Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { useContextSelector } from 'use-context-selector';
6
6
import { AppContext } from '../context' ;
7
7
import { FlowNodeTypeEnum } from '@fastgpt/global/core/workflow/node/constant' ;
8
8
import { type McpToolConfigType } from '@fastgpt/global/core/app/type' ;
9
- import { type MCPToolSetData } from '@/pageComponents/dashboard/apps/MCPToolsEditModal' ;
10
9
import { type StoreSecretValueType } from '@fastgpt/global/common/secret/type' ;
11
10
12
11
const MCPTools = ( ) => {
@@ -20,7 +19,9 @@ const MCPTools = () => {
20
19
21
20
const [ url , setUrl ] = useState ( toolSetData ?. url || '' ) ;
22
21
const [ toolList , setToolList ] = useState < McpToolConfigType [ ] > ( toolSetData ?. toolList || [ ] ) ;
23
- const [ headerSecret , setHeaderSecret ] = useState < StoreSecretValueType > ( toolSetData ?. headerSecret ) ;
22
+ const [ headerSecret , setHeaderSecret ] = useState < StoreSecretValueType > (
23
+ toolSetData ?. headerSecret ?? { }
24
+ ) ;
24
25
const [ currentTool , setCurrentTool ] = useState < McpToolConfigType > ( toolSetData . toolList [ 0 ] ) ;
25
26
26
27
return (
You can’t perform that action at this time.
0 commit comments