From c45b47aaa25e7bb5092ddd6a3fcb93c540543218 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Tue, 8 Apr 2025 13:14:13 -0700 Subject: [PATCH] fix: Bug where rendering a number as the arg value errors --- .../thread/agent-inbox/components/inbox-item-input.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/thread/agent-inbox/components/inbox-item-input.tsx b/src/components/thread/agent-inbox/components/inbox-item-input.tsx index 7042933..bac3063 100644 --- a/src/components/thread/agent-inbox/components/inbox-item-input.tsx +++ b/src/components/thread/agent-inbox/components/inbox-item-input.tsx @@ -28,7 +28,7 @@ function ArgsRenderer({ args }: { args: Record }) { {Object.entries(args).map(([k, v]) => { let value = ""; if (["string", "number"].includes(typeof v)) { - value = v as string; + value = v.toString(); } else { value = JSON.stringify(v, null); }