Skip to content

Commit 2d252a3

Browse files
committed
Remove escapeUnicode function from ToolsTab.tsx
1 parent e6f5da8 commit 2d252a3

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

client/src/components/JsonView.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { JsonValue } from "./DynamicJsonForm";
33
import clsx from "clsx";
44

55
interface JsonViewProps {
6-
data: JsonValue;
6+
data: unknown;
77
name?: string;
88
initialExpandDepth?: number;
99
}
@@ -33,9 +33,9 @@ const JsonView = memo(
3333
: data;
3434

3535
return (
36-
<div className="font-mono text-sm transition-all duration-300">
36+
<div className="font-mono text-sm transition-all duration-300 ">
3737
<JsonNode
38-
data={normalizedData}
38+
data={normalizedData as JsonValue}
3939
name={name}
4040
depth={0}
4141
initialExpandDepth={initialExpandDepth}

client/src/components/ToolsTab.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
import { AlertCircle, Send } from "lucide-react";
1717
import { useEffect, useState } from "react";
1818
import ListPane from "./ListPane";
19-
import { escapeUnicode } from "@/utils/escapeUnicode";
2019
import JsonView from "./JsonView";
2120

2221
const ToolsTab = ({
@@ -55,12 +54,12 @@ const ToolsTab = ({
5554
<>
5655
<h4 className="font-semibold mb-2">Invalid Tool Result:</h4>
5756
<div className="p-4 border rounded">
58-
<JsonView data={escapeUnicode(toolResult)} />
57+
<JsonView data={toolResult} />
5958
</div>
6059
<h4 className="font-semibold mb-2">Errors:</h4>
6160
{parsedResult.error.errors.map((error, idx) => (
6261
<div key={idx} className="p-4 border rounded">
63-
<JsonView data={escapeUnicode(error)} />
62+
<JsonView data={error} />
6463
</div>
6564
))}
6665
</>
@@ -99,7 +98,7 @@ const ToolsTab = ({
9998
</audio>
10099
) : (
101100
<div className="p-4 border rounded">
102-
<JsonView data={escapeUnicode(item.resource)} />
101+
<JsonView data={item.resource} />
103102
</div>
104103
))}
105104
</div>
@@ -111,7 +110,7 @@ const ToolsTab = ({
111110
<>
112111
<h4 className="font-semibold mb-2">Tool Result (Legacy):</h4>
113112
<div className="p-4 border rounded">
114-
<JsonView data={escapeUnicode(toolResult.toolResult)} />
113+
<JsonView data={toolResult.toolResult} />
115114
</div>
116115
</>
117116
);

0 commit comments

Comments
 (0)