Skip to content

Commit 4092756

Browse files
committed
fix: hide View Trace and Trace ID for logs without trace context
Coerce empty/falsy trace IDs to undefined so logs without actual trace data don't show the View Trace button or Copy Trace ID action. Made-with: Cursor
1 parent 3187f77 commit 4092756

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/app/src/components/DBRowSidePanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ export const DBRowSidePanelInner = ({
387387
}, [timestampDate]);
388388

389389
const focusDate = timestampDate;
390-
const traceId: string | undefined = normalizedRow?.['__hdx_trace_id'];
390+
const traceId: string | undefined =
391+
normalizedRow?.['__hdx_trace_id'] || undefined;
391392

392393
const childSourceId =
393394
source.kind === 'log'

0 commit comments

Comments
 (0)