Skip to content

Commit c45b47a

Browse files
committed
fix: Bug where rendering a number as the arg value errors
1 parent 851853e commit c45b47a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/thread/agent-inbox/components/inbox-item-input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function ArgsRenderer({ args }: { args: Record<string, any> }) {
2828
{Object.entries(args).map(([k, v]) => {
2929
let value = "";
3030
if (["string", "number"].includes(typeof v)) {
31-
value = v as string;
31+
value = v.toString();
3232
} else {
3333
value = JSON.stringify(v, null);
3434
}

0 commit comments

Comments
 (0)