Skip to content

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

refactor(web): Fix no-null-render: LogViewTreeIndent.tsx (#17175)

Ben Bachemc9c54f554ac7
diff --git a/web/src/features/traces/components/TraceLogView/LogViewTreeIndent.tsx b/web/src/features/traces/components/TraceLogView/LogViewTreeIndent.tsx
index 4c94bf390a..23b882acfa 100644
--- a/web/src/features/traces/components/TraceLogView/LogViewTreeIndent.tsx
+++ b/web/src/features/traces/components/TraceLogView/LogViewTreeIndent.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable @repo/no-null-render */
/**
* LogViewTreeIndent - Tree indentation lines for log view rows.
*
@@ -13,8 +12,6 @@ export interface LogViewTreeIndentProps {
treeLines: boolean[];
/** Whether this node is the last sibling at its level */
isLastSibling: boolean;
- /** Current depth level */
- depth: number;
}
/**
@@ -23,10 +20,7 @@ export interface LogViewTreeIndentProps {
export const LogViewTreeIndent = memo(function LogViewTreeIndent({
treeLines,
isLastSibling,
- depth,
}: LogViewTreeIndentProps) {
- if (depth <= 0) return null;
-
return (
<div className="flex shrink-0">
{/* Vertical lines for each ancestor level */}
diff --git a/web/src/features/traces/components/TraceLogView/TraceLogView.tsx b/web/src/features/traces/components/TraceLogView/TraceLogView.tsx
index f46ae1cc85..5e9c5ca75a 100644
--- a/web/src/features/traces/components/TraceLogView/TraceLogView.tsx
+++ b/web/src/features/traces/components/TraceLogView/TraceLogView.tsx
@@ -170,7 +170,6 @@ export const TraceLogView = ({
<LogViewTreeIndent
treeLines={item.treeLines}
isLastSibling={item.isLastSibling}
- depth={item.node.depth}
/>
);
},