File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -147,17 +147,11 @@ const ToolsTab = ({
147
147
</ h3 >
148
148
</ div >
149
149
< div className = "p-4" >
150
- { error ? (
151
- < Alert variant = "destructive" >
152
- < AlertCircle className = "h-4 w-4" />
153
- < AlertTitle > Error</ AlertTitle >
154
- < AlertDescription > { error } </ AlertDescription >
155
- </ Alert >
156
- ) : selectedTool ? (
150
+ { selectedTool ? (
157
151
< div className = "space-y-4" >
158
- < p className = "text-sm text-gray-600" >
159
- { selectedTool . description }
160
- </ p >
152
+ < p className = "text-sm text-gray-600" >
153
+ { selectedTool . description }
154
+ </ p >
161
155
{ Object . entries ( selectedTool . inputSchema . properties ?? [ ] ) . map (
162
156
( [ key , value ] ) => {
163
157
const prop = value as JsonSchemaType ;
@@ -252,6 +246,13 @@ const ToolsTab = ({
252
246
Run Tool
253
247
</ Button >
254
248
{ toolResult && renderToolResult ( ) }
249
+ { error && (
250
+ < Alert variant = "destructive" >
251
+ < AlertCircle className = "h-4 w-4" />
252
+ < AlertTitle > Error</ AlertTitle >
253
+ < AlertDescription > { error } </ AlertDescription >
254
+ </ Alert >
255
+ ) }
255
256
</ div >
256
257
) : (
257
258
< Alert >
You can’t perform that action at this time.
0 commit comments