Merge pull request #98 from langchain-ai/brace/render-numbers
fix: Bug where rendering a number as the arg value errors
This commit is contained in:
@@ -28,7 +28,7 @@ function ArgsRenderer({ args }: { args: Record<string, any> }) {
|
||||
{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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user