Skip to content

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

refactor(web): Fix no-null-render: SectionMedia.tsx (#17222)

Ben Bachem900cbcf5a640
diff --git a/web/src/features/traces/components/IOPreview/components/SectionMedia.tsx b/web/src/features/traces/components/IOPreview/components/SectionMedia.tsx
index 46abbf5fb4..df75017e5f 100644
--- a/web/src/features/traces/components/IOPreview/components/SectionMedia.tsx
+++ b/web/src/features/traces/components/IOPreview/components/SectionMedia.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable @repo/no-null-render */
import { LangfuseMediaView } from "@/src/components/ui/LangfuseMediaView";
import { type MediaReturnType } from "@/src/features/media/validation";
@@ -11,10 +10,6 @@ export interface SectionMediaProps {
* SectionMedia renders media attachments at the bottom of the message list.
*/
export function SectionMedia({ media }: SectionMediaProps) {
- if (media.length === 0) {
- return null;
- }
-
return (
<>
<div className="text-muted-foreground my-1 px-2 py-1 text-xs">Media</div>