Update client/src/components/ToolsTab.tsx

Co-authored-by: ashwin-ant <ashwin@anthropic.com>
This commit is contained in:
Jack Steam 2024-11-26 13:30:43 -07:00 • committed by GitHub
commit 60578314aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,8 +49,11 @@ const ToolsTab = ({
{JSON.stringify(toolResult, null, 2)}
</pre>
<h4 className="font-semibold mb-2">Errors:</h4>
{parsedResult.error.errors.map((error) => (
<pre className="bg-gray-50 dark:bg-gray-800 dark:text-gray-100 p-4 rounded text-sm overflow-auto max-h-64">
{parsedResult.error.errors.map((error, idx) => (
<pre
key={idx}
className="bg-gray-50 dark:bg-gray-800 dark:text-gray-100 p-4 rounded text-sm overflow-auto max-h-64"
>
{JSON.stringify(error, null, 2)}
</pre>
))}