Skip to content

Commit e22bd79

Browse files
authored
Merge pull request #98 from langchain-ai/brace/render-numbers
fix: Bug where rendering a number as the arg value errors
2 parents 851853e + c45b47a commit e22bd79

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)