Skip to content

Commit 6057831

Browse files
Update client/src/components/ToolsTab.tsx
Co-authored-by: ashwin-ant <[email protected]>
1 parent fbac5b7 commit 6057831

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

client/src/components/ToolsTab.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ const ToolsTab = ({
4949
{JSON.stringify(toolResult, null, 2)}
5050
</pre>
5151
<h4 className="font-semibold mb-2">Errors:</h4>
52-
{parsedResult.error.errors.map((error) => (
53-
<pre className="bg-gray-50 dark:bg-gray-800 dark:text-gray-100 p-4 rounded text-sm overflow-auto max-h-64">
52+
{parsedResult.error.errors.map((error, idx) => (
53+
<pre
54+
key={idx}
55+
className="bg-gray-50 dark:bg-gray-800 dark:text-gray-100 p-4 rounded text-sm overflow-auto max-h-64"
56+
>
5457
{JSON.stringify(error, null, 2)}
5558
</pre>
5659
))}

0 commit comments

Comments
 (0)