fix: Bug where rendering a number as the arg value errors

This commit is contained in:
bracesproul
2025-04-08 13:14:13 -07:00
parent 851853ec26
commit c45b47aaa2

View File

@@ -28,7 +28,7 @@ function ArgsRenderer({ args }: { args: Record<string, any> }) {
{Object.entries(args).map(([k, v]) => { {Object.entries(args).map(([k, v]) => {
let value = ""; let value = "";
if (["string", "number"].includes(typeof v)) { if (["string", "number"].includes(typeof v)) {
value = v as string; value = v.toString();
} else { } else {
value = JSON.stringify(v, null); value = JSON.stringify(v, null);
} }