Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix: show falsy values in IOTableCell unless null/undefined (#7507)

Steffen Schmitzdfd527a74065
diff --git a/web/src/components/ui/CodeJsonViewer.tsx b/web/src/components/ui/CodeJsonViewer.tsx
index 122aa14a73..416df0ccd5 100644
--- a/web/src/components/ui/CodeJsonViewer.tsx
+++ b/web/src/components/ui/CodeJsonViewer.tsx
@@ -257,7 +257,7 @@ export const IOTableCell = ({
return <JsonSkeleton className="h-full w-full overflow-hidden px-2 py-1" />;
}
- const stringifiedJson = data ? stringifyJsonNode(data) : undefined;
+ const stringifiedJson = data !== null && data !== undefined ? stringifyJsonNode(data) : undefined;
// perf: truncate to IO_TABLE_CHAR_LIMIT characters as table becomes unresponsive attempting to render large JSONs with high levels of nesting
const shouldTruncate =